Skillfully handling the objects of senses and bringing it to the self is Vairagya.
Gym works on the muscular system but Yoga works on the 7 systems (of body). Gym is not a substitute to Yoga.