Deductions & credits

Yes, your understanding is correct.  If the credit reduces your tax liability to zero for the current tax year and all of the credit was not used then the remaining credit is carried over the the following tax years until it is all used up.