I moved two sims in together and when they got married, the female still has the same last name she did before they got married, and their child has her last name.
I have to say I was disappointed to find out my female sim kept her last name! I wish I'd been given the option to keep it or take her husband's surname.