Can a school really make you wear shorts under your school uniform skirt?

My school as part of it's school uniform policy says that all girls must wear black or navy tight/athletic shorts under skirts at all times (including if wearing tights).
Can a school really make you wear shorts under your school uniform skirt?
Post Opinion