Yes. If you'd like to generate the credit in 2022 to make it available for future years, you should go ahead an amend. Here is some more information on filing amendments: How to File an Amended Tax Return with the IRS
Note that the credit isn't a dollar for dollar reduction of tax, it's a credit of 30% of the purchase price. As well, if you have some tax, you can take the credit to reduce your tax to zero and carryover any remaining credit to future years.
Here is some more information: Federal Tax Credit for Residential Solar Energy