Investors & landlords

Thank you! So as long as the depreciation recapture and the long term capital gains are within 250000/500000 I still wouldn't need to pay capital gains taxes, is that right?