It’s all in how you define your virginity. If you mean having your hymen torn/stretched, then yeah, you could lose your “virginity” that way. But really? The only way you stop being a virgin is after you have sex with another person.
There are stricter rules on this in other cultures, I’m aware. Being a virgin is even defined as being an “unmarried/single woman”! The primary definition remains though, which is: a person who has never had sexual intercourse.
Don’t worry so much about the whole “am I virgin if I do this/am I not?” etc. There’s no point in dissecting this “grey” area and getting to a point where you’re saying “well, I’m half a virgin!” (thank you Mean Girls).
When you have sex with someone else for the first time, then you are no longer a virgin. But the label isn’t important, okay? People place far too much stock in the whole concept of “virginity”.