Can apartments be traded tax-free for a rental house?

Owners fear IRS will recapture deducted depreciation