If you accidentally ate licorice while pregnant, it is important to talk to your doctor as soon as possible. Licorice contains glycyrrhizin, which can cause high blood pressure and heart problems in a fetus if consumed in large amounts. However, small amounts that are found in candies or herbal teas are generally considered safe for consumption during pregnancy. It is best to speak with your healthcare provider about any potential risks before consuming anything containing licorice extract while pregnant.