It is possible that if you used an intrauterine method of birth control but still got pregnant that infection could occur or a form of Congenital candidiasis. However these forms of candida are very rare. There is congenital cutaneous candidiasis and congenital systemic candidiasis, the first is a skin problem and is treatable, the second is life threatening because the candida has entered the baby’s bloodstream and can affect internal organs.
For babies born prematurely or with very low birth weights the death rate from congenital systemic candidiasis is higher because their immune systems are so weak and cannot handle what is happening to their internal organs. The key thing to remember here is that this is rare, over the 1990s the amount of congenital systemic candidiasis cases reported was in the hundreds over the whole of the United States. Talk to your doctor about any concerns you have.