Can a 8th be with a 10th grader?

So basically im in 8th grade but im 15 and my birthday was late so they held me back and a guy im talking to is in 10th grade and 16 so is that bad if we dated?
Can a 8th be with a 10th grader?
Post Opinion