Yes, you should be able to apply for the SSN iwth the transportation letter you will be given by the Embassy as well as the passport stamp in the passport, which will/should indicate that you are entering the US as a green card holder.