Exercise is important but getting sleep is so important.
Research shows that if you manage less than seven hours of sleep it could actually lead you to cut your workouts short. It should come as no real surprise that lack of sleep can affect your motivation, hand in hand with more exertion and fatigue.
If you miss your exercise, your sleep is more likely to suffer. So it’s a known fact that regular exercise in the daytime will help you sleep better at night.
Find a balance because your body needs exercise, but it also needs time to recover from said exercise.