Its not against the rules legally but may be against the school rules as published in the flying order book, a lot of schools in the US do this as there has been a number of accidents involving students doing touch and gos and not retracting the flaps and stalling etc