If you want to keep your virginity until marriage it’s a great idea to get some support. There are various groups that will provide that support. Start with your church or your high school guidance counselor as ideas for resources for those support groups.
That said, sex is not what breaks up relationships — but it does complicate them and those complications can very definitely be the sources of break ups.