Help please

I have a friend who wants to know if it’s possible to get a yeast infection before finding out if she’s pregnant? Has this happened to anyone?