Yes, Morocco is considered a very safe country, specially for turists. Authorities take very serioulsy the safety and protection of the travellers visiting Morocco.
It is important to take precautions as you would in any new place. Petty crimes such as pickpocketing, bag snatching and drive-by motorcycle theft are common in Morocco, particularly in tourist areas such as historic quarters and beaches.