Child’s last name

If you marry and you and your husband keep your own last name, can you then choose what last name your child has?

Are there rules (laws) when it comes to naming your child?

I don’t have kids yet but I want to keep my name when I get married (as I want to honour my father and I don’t have brothers to pass the name down).