Im late

So im late. I have irregular periods but i have never had these symptoms. Im almost a week late and im throwing up and feeling nauseous I am wondering if i should take a test. Im only asking because I had this happen before when i had a uti that i didnt know about and it turned into a kidney infection but it was worse than this meaning a fever of 105 and throwing up water or every 30 mins. So im not sure if this is pregnancy or infection. Im planning on taking a test tomorrow and scheduling a dr appointment but i just want opinions if anyone has had this