It is possible but of course you need to know that a flight from the "other" airport in Morocco does fly to USA.
I don't know that there is a strategy, some online flight booking sites do ask if yuo want the option of arriving at one and depart form another.
Hello!it is possible to fly from an other airport on the way back home.I did the same last year.I landed in Marrakech and flew from Fez.I'll have the chance to post my trip review to Morocco as soon as possible.