Wise Decision ?

Larissa • 18 & somewhat loving it. Trying my hardest to be happy with who I am.
My recent boyfriend broke up with me because I wouldn't have sex with him. In his terms he put it as being dragged along. I'm also a virgin and I didn't want to just give it up. Was ending it the right thing? I trusted him and he was my friend before we dated. ADVICE!