Make sure to treat yeast infections as quickly as possible while pregnant. Yeast infections can spread to a baby during vaginal birth and cause oral thrush.