Yes, if you take the necessary precautions. Don't dress in revealing clothes, show your midriff, very short skirts, low-cut tops etc. I would be more afraid of the cobras in Djma al-fnaa than the local men!! Morocco is a beautiful country, if I were you, I would go to the trouble of finding a good reliable taxi-driver who is also a guide, that way you'll see some of the country safely. I do have a contact in Marrakesh, but not elsewhere. When are you thinking of going?