Deductions & credits

If I had a medical expense in 2021,that I charged to my credit card, but paid that charge in 2022, can I count the cost as a medical deduction on my 2022 taxes?