vitamins and sickness

If I threw up an hour after I took my vitamin will it still be ok? Will my body have absorbed it?