Help!

So I masturbated through my underwear for the first time last night and my legs started spasming I guess?? Was that an orgasm or what??