The U.S. State Department has a level 1 travel advisory for Morocco, the lowest level. Conditions are generally safe in Morocco. They advise to "exercise normal precautions"
as "there is some risk in any international travel". More information on security and other useful travel information can be found at the U.S. State Department's website.