Can I get former years child tax credit?

My kid had an invalid for employment SSN.

I forgot to change his SSN to valid when we got the green card since 2017.

Does it mean I did not get his tax return or Child Tax Credit?

If I change his status now, can I  get former years tax return and child tax credit?

Thanks.