Investors & landlords

What happens if I sold the rental property in 2020 and am still paying interest on my credit card in 2021?  Can I still claim it?