Sick or pregnant

I rarely get sick but yesterday Around 1:30 out of nowhere I felt so damn lightheaded and was throwing up . Went to work thinking I could shake it off but continuously began to throw up . Around 4:00 I was officially done throwing up I just had a bad headache all night when I came home I made home made chicken soup . This morning I feel fine . Has anyone else felt like this?