Mexico is not a Moroccan visa free countries. Anyways Moroccan citizens had visa-free or visa on arrival access to 59 countries and territories like Brazil, China,Indonesia...
No. A visa is required for which the Moroccan citizen will have to go the nearest consulate of Mexico in Morocco in person. Register on this website to know the visa requirements: