we crave it, chase it, mourn its loss, and embrace it. Exercising regularly can help; even short bouts a few times a week have been shown to improve sleep quality.
But exercising intensely too close to bedtime has generally been advised against, since it ramps our bodies up at a time when we should be winding down. Research shows people take longer to fall asleep, and sleep rather poorly, after exercising within an hour of bed.