Will Solar tax credit erase early 401k withdrawl?

Hi, I have a solar tax credit this year (and for 5 yrs if I don't have that much liability). I was wondering about early withdrawal from my 401k to pay for a number of outstanding debts. Will that tax credit wipe out my early withdrawal penalty? thanks in advance!