Investors & landlords

No. You can only offset gains from 2021 with losses from 2021 or from carry over losses from previous years.