Deductions & credits

Thank you. My goal is to deduct from my 2021 taxes, so that would work well - to confirm, I can amend my 2021 taxes and receive a refund for a 2021 donation, even if the amendment is done in 2022 or 2023?