Yes, you can correct your name with Royal Air Maroc. But under certain circumstances and security purposes, the name change might not be approved. So, contact the airlines as soon as you realize a name change is required.