Are you fricken serious???
You won't spend the whole year cooped up in your room studying. There will be times when you want a break. The gym is perfect for that!
Just organise your time - integrate study, the gym and everything else into your life and you'll be fine.