Yeast infection....could I be pregnant?

I spotted very lightly yesterday and nothing since...now I have a possible yeast infection....should I take a test???