If you are in places such as small villages, Moroccan homes, public events etc you must show some respect and keep most parts covered although this would not normally apply to having ones head covered. Tourists are not allowed into mosques (except in Casablanca) where you would remove shoes.