It is not recommended to wear a hoodie while you sleep. It can lead to excess heat loss from the body leading to rashes and dehydration.