Is it possible for your head to hurt so bad you feel like you have to throw up?

Yes. Some headache like migraine does that. There are other types of headache that too can make u vomit.