I do, but I go before college so it's not impacting my revision at all. I go 6 days for 90 minute sessions a week before college. If you're behind on your work, don't go - your education is more important.
I used to go to the gym 3x per week when it was 2 months to he exam i went 1 time per week full body, then as it came to 3 weeks before the exam I stopped going did at home things instead Push-ups pull ups, I also have a bar at home so I was able to do biceps at home. Hope this helps