Baby's last name

Clarissa
If you have a baby before married do you give the baby the moms last name or still the dad's I don't wanna make the wrong choice???