Exercise and physical activity can be a fun way to spend some time. It gives you a chance to unwind, enjoy the outdoors or simply engage in activities that make you happy. Physical activity can also help you connect with family or friends in a fun social setting. For some, a moderate workout can be the equivalent of a sleeping pill, even for people with insomnia . Moving around five to six hours before bedtime raises the body’s core temperature.