It is generally recommended that you wear a hat when outside, as it can protect your face and head from sunburn. However, there are some exceptions to this rule, so it is important to speak with a doctor before wearing a hat for any reason.