Investors & landlords

No, you have to take capital gains or losses in the year for which they occurred, or use carryovers as required.