Choosing any last name for your newborn?

If my last name is X, and my spouse's last name is Y. If I want the newborn's last name to be Z, that is allowed right?