Treatment of infections during pregnancy is very important. Pregnant women tend to have weaker immune systems and untreated infections can cause serious complications for both the mother and baby. Most healthcare providers only prescribe medications to pregnant women when deemed absolutely necessary.