No. Moroccan law does not require you to provide a marriage certificate during the birth declaration of your newborn in Morocco.
If you face challenges, you can request the assistance of a UNHCR partner listed on the Legal Assistance page.