Need advice pleease.

Ruby
Just last night as i was getting arroused by my boyfriend i get a sharp pain on my vulva lip. I googled it up and it said it was "blue balls".. Later on i had sex and after i was vigal white discharge like cottege cheese came out. No smell and no itchness. I figured out i have a yeast infection. But there is also a small chance that i could be pregant Should i just take an over the couter viginal antifungal??. Would it harm the baby if perharps i am 2 weeks pregant?