Yeast Infection?????

Can you get a yeast infection from over doing it in sex? My vagina got dry at one point during and it started to hurt after. Idk what to think 🤦🏼‍♀️😫