There is no single right answer here, because it depends far less on whether you are in a relationship and far more on how you handle it. A relationship is not automatically bad for studies, and being single does not automatically make you a topper. What matters is balance, maturity, and whether the relationship adds to your life or constantly pulls you off track.
A healthy relationship can actually be supportive. Two people who respect each other’s goals can motivate each other, study together, and provide comfort during stressful times. The problems come when a relationship brings constant drama, jealousy, or takes so much time and emotional energy that studies, sleep, and other friendships suffer. If you find your focus, mood, and grades slipping because of relationship stress, that is a signal to step back and rebalance, not necessarily to end things, but to set healthier limits.
Be honest with yourself about your priorities at this stage of life. Your studies and personal growth are laying the foundation for your future, and it is fair to protect them. If you do choose to be in a relationship, keep your own goals, friendships, and identity intact rather than losing yourself in it. And never let anyone, partner or peer, pressure you into anything you are not comfortable with. The healthiest relationships, at any age, are the ones where both people grow rather than shrink.
Example: A couple who study together, respect each other’s exam schedules, and give each other space usually manage fine. Constant fights that wreck sleep and focus are the real problem, not the relationship itself.
One practical tip: Judge a relationship by how it affects the rest of your life. If your goals, sleep and friendships stay healthy, you are balancing it well.