1. Yes, USCIS and consulate in Morocco will recognize a Utah online marriage if done properly.
2. Absolutely. USCIS will not recognize a marriage until both spouses are in the same place either during or after the marriage ceremony.
You would have to (1) marry via a Utah online marriage, (2) meet, then (3) start the CR-1 process...in that order.
For the purpose of immigration, a couple must consummate the marriage before USCIS will recognize the marriage. Consummation, per USCIS standards, means being in the same place during or after the ceremony. You cannot file a proper I-130 until the marriage has been consummated.