No. Moroccan law allows you to register your child in Moroccan civil status, even if your child was born out of wedlock. You can freely choose a surname and a first name for your child.