Pregnant ?

So I currently started taking over the counter medicine (pill form) for a uti I may have but I'm feeling overly tired, nauseous and I have stomach pain.. Does this mean I could possibly be pregnant? And can I take a home test while on this medication and get accurate results still? Help!!😩