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.
This happened to me too. You can choose the babies last name upon birth, but either spouse's original last name stays the same as before they were married.