Birth certificates

So my SO and I are not married. When the baby is born if I put my SO's last name for the baby do they do paternity tests since we aren't married? I'm so confused... Thanks for any help!!