Yes, you can wear shorts in Marrakech. While generally acceptable, especially for tourists, it is often more comfortable and considered more respectful to opt for longer shorts, capris, or light trousers/skirts, particularly when visiting religious sites or more traditional neighborhoods.