Deductions & credits

If my child gets SSN after April 2019 but before Oct 2019 and I file by the extended deadline can I claim CTC for 2018? Also, what if he gets SSN before April 2019?
We are in the process of applying for permanent residence???