Yeast infection and pregnancy

Are pregnant women more likely to get yeast infections? I recently had unprotected sex and have been for some months and I’m unsure if he came in me the last time and I got a yeast infection a day later is this an early sign of pregnancy or does anyone know why this happened?