Yeast infections

Hannah
Do I have to go to the doctor if I have a yeast infection or can I get something over the counter?