Cramps from sex?

Is it possible to get muscle cramps from sex?

I have bad thigh cramps after several sessions yesterday.

Could that be a cause?