Tramadol

I was prescribed tramadol from my doctor because I've been have serve stomach cramps and nothing else has worked to calm them down. 
​I'm 8 weeks pregnant and buba is fine just a bit worried about actually taking it so wondering if anyone else has been prescribed it and it's fine? :)