Does it matter which yeast infection creme I use while pregnant?

I bought 1 day miconazole, but I just read up more and it says to buy the 5 or 7 day if you're pregnant. :/