I had bleeding for 2 days please help

I just woke up 3 am dead sleep throwing up ? Is ther a chance it was implanation bleeding? I have never thrown up because of a period last time I threw up I was pregnant with my son if so when should I test?