Is there a law that China must add a surname when naming children?

Article 22 of the Marriage Law

Children may take their father's surname or their mother's surname.

But the law does not prohibit you from taking his surname, as long as it is not too uncommon, hehe. Too uncommon words, sometimes the computer can't get them out, which has an impact on the establishment of personal files! In short, how to choose a name is a personal act, and the law does not interfere!