Yes, the unused credit will carry forward to future years if you tax liability limits the amount this year. However, it is not yet clear whether you can carry unused credits to years after the solar credit expires.
https://turbotax.intuit.com/tax-tips/going-green/federal-tax-credit-for-solar-energy/L7s9ZiB4D