Help please

Took Azithromycin for chlamydia , I threw up 10 min after taking it . Could I have thrown up the pill ? Will it still work ?