Had a friend who was prescribed this by her GP when she was pregnant, so should be safe. If you are worried, just call up the clinic or head to a pharmacist to check. Oh, and best to follow the dosage.
My friend also drank honey water to ease the discomfort.
Take care!!