Assuming you’re a woman, then yes (guys, it’s never acceptable to spank the monkey in public, just to be clear).
Lots of women enjoy ‘thigh masturbation’ – (usually) crossing your legs, and then squeezing your thighs so that they add pressure to your pussy and clit (and just the clenching feels good too).
Some also bounce their leg over the other, like tapping a foot in the air. A sizeable number of women can cum from it, and some can ONLY cum from it if they started very early (it’s been reported in toddlers).
Others are reading this for the first time and going ‘fuck off that isn’t a thing’. it really is! (I’ve caught several women doing it on the Tube in London before now).
Read some more about it: