first time

hi i'm new here and i'm also a virgin i was wonderind if you can lose your virginity by having anal sex or does it have to be the other way in order to lose it? please help