Many sleep experts recommend exercising in the morning, but some people can exercise at night without harming their sleep.