It is better apply before get martied, many ss ofice dont let you get a ssn after get married, they want see a uscis document after get married, so better before married. Just get your passport, and i-94 .
Any change on name you do it after get married