When your married and you have a child does your child have to take the fathers last name?

That decision is up to the parents. There is no law that covers this situation if the mother has not taken her husband's name in marriage.