It depends. It has to meet certain conditions; It has to be deeded and recorded and meet other criteria.
Review the TurboTax article Can I deduct the mortgage interest on a timeshare? for more information.