Leg Massage 6 Weeks Pregnant?

Am

For the last few days I’ve had awful leg cramps, they’ve kept me up for 2 nights and I’m shattered. I’m 6 weeks pregnant and wondered if it was OK to use a massage back machine on the backs of my calves?