Should I test?

Crimson
I started my period like normal this past week but it was light. Today I woke up throwing up with stomach virus like symptoms but it only lasted for a couple of hours. I still feel kinda nausea but no throwing up or pooping. Could there be a possibility I'm pregnant and not sick with the stomach virus?