What is the reason the doctor prescribed it? I will not take anything during pregnancy unless absolutely necessary.... like, if you didn't take it you or baby could be harmed. Everying you put into your body affects your baby somehow. I prefer not to take a chance.
Did your doctor know you are pregnant if so they are not going to give you something that they are going to be sued over. So if the doctor knows then I would say its safe.