Yes, you can claim your charitable donations from as far as5 years ago.
As per the Canada Revenue Agency (CRA) you can check your previous charitable donations on (CRA's My Account)website.
Once you log into your account, click on the tax returns tab at the top of the page.
From there, you can view your tax returns from previous years.
Look at line 349 on your previous T1 General tax return prior to 2019 or line 34900 of your Income Tax and Benefit returns of 2019 and onward to determine whether you have claimed donations for each of the past five years.