Efectiveness of contraceptives

Patient: Hi there my doctor gave me the three monthly contraceptive injection today, if I vomit or have diarrhoea will it affect the contraceptive in any way, if I have unprotected sex, will I still stop me from getting pregnant?

Doctor: