From sex to ex

I lost my virginity at 14 well it was the night before my 15th bithday and I did it about three times I don’t know didn’t really count but it was a few times I then did it again a few times on the mirningof my bithday and then the boy I was camping with asked me out and we was togetjerfor about four minths still to this day a year later I regret it so much I knew him he was my best mates (who id known her for 12 years) cousin. He was very rude to me but my best mate stayed with em throughout it and stuck up for me regardless of the fst that was her cousin! He called me a slag and a whore and was very rude to me when I had a pregnancy scare so I just ended it I couldn’t do it anymore?? Do you think I did the right thing back then or not??