Dating age

In high school is dating an underclassman ok? A lot of people judge if a girl dates a younger guy. What’s your opinion?