Vaginal thrush?

Is there something I can take over the counter if i think I have vaginal thrush? That's save while pregnant? It's been going on for almost 2 weeks. Should I go to the doctors?