Leg Cramps

Last night I woke up with the worst leg cramps. I've never had them before and they were no joke, my calves are actually sore from it today. Have any of you experienced this? Is there anything I can do to prevent them or at least shorten them? I'm 21 weeks. Is this normal?