What do you do for a yeast infection?

For a possible yeast infection what do you do? Should you go to the drs for it or just try a kit from the store? TTC so not sure if the discharge is related to that or a yeast infection can I use those creams if pregnant? No itchiness yet but just curious