Does my teacher have any right to do this?

In high school, classes typically meet every day. If your math class only meets twice a week, in order to fit the curriculum in one semester instructors can’t afford to have two wasted class periods. Yes, it’s totally normal.