If it is a school gym, it is specially set up for students, and students can go in to exercise.
If a third party runs a gym at school, you have to pay for it. If your classmates have good family conditions, you can go to the gym. If you have no money to pay, it is not recommended that you go. You can achieve the purpose of fitness by running, swimming, playing ball and other ways.