Capital Gains Taxes

If I sold a house in 2021 in Missouri and bought a home in Fl in 2022 and sold in 2022 will I owe capitals gains tax in 2024?