Is it safe to take?

is it safe to take metoclopramide when pregnant I've been having really bad stomach ulcer pain since yesterday if I take this will if affect my baby? I'm gonna ask my doctor tomorrow but I need to know right now has anyone else taken this being pregnant?