Can I get dress coded for wearing pantyhose under my ripped jeans?

At my school we can't wear ripped jeans without something under them "too much skin showing. It distracts boys" so I was thinking would I still get in trouble even if I wore pantyhose under my jeans even though my skin really isn't showing?
Can I get dress coded for wearing pantyhose under my ripped jeans?
Post Opinion