Gym vs studies

"I need some advice. Should I join a gym? I have exams coming up in May, and I have about 1.5 months to prepare. I've been feeling depressed for a long time due to continuous failure, and someone suggested that exercising at the gym could help improve my mood.

However, I'm not sure if joining a gym is a good idea at this critical point in my studies. I'm not a very disciplined person, and I struggle to stay motivated on my own. Should I join the gym now and try to balance it with my studies, or should I focus solely on my exams? Please, someone, advise me on what to do." I am left with group 2 of ca inter (info.)