In general, Morocco is a safe country to explore. Moroccans are well known for being a hospitable and tolerant people which makes traveling through the country a much more enjoyable experience. That said, the conservative nature of the local culture does mean that traditional customs should be respected in public in order to avoid less desirable situations. As with many other countries, tourists are a special target of pick-pockets and faux guides so being aware of your surroundings and belongings is general common sense.
There is no need to be afraid of traveling to Morocco. Staying calm, looking confident and brushing off the occasional cat-call are all much more positive attitudes which, in the end, will help make your stay in Morocco one you will remember for all the right reasons.
There are decent medical facilities in all main cities, including emergency pharmacies (see postings in pharmacy windows listing the nearest pharmacie du garde, or after-hours pharmacy) and clinics in major hotels outside normal opening hours. Government hospitals provide free or minimal charge emergency treatment. However, do not expect Western standards of treatment - with a healthcare system that’s vastly underfunded, public hospitals tend to be run down, lacking in facilities and may not be able to provide a comprehensive range treatments. It is recommended that visitors take out travel insurance that will cover medical treatment.