Hey Timothy,
You can make progress training twice a week. It just won’t be as good as if you could train 3 times per week. If your school gym is the only one around with a squat rack then you may be confined to twice a week. Either way, watch the technique videos and add weight to the bar every time you’re in the gym. Good luck.