Deductions & credits

Thank you!!   Im kind of a extreme novice to taxes, really. But this means as a "credit" of lets say 9500 --for the solar, it would essentially erase it (my 401k penalty),  and my income tax liability for this year and....theoretically still receive a refund check from federal and state gov?