Infections can cause problems for both the mother and the baby. Many treatments for infections may be unsafe to use while pregnant.