Do you have to give your child the father’s last name?

If you are pregnant and not married or together do you have to give your child the father’s last name? No bad blood, but I’d like my child to have my last name. And I’m curious if I have a right to do so or if I have to name the child using the father’s last name.