Answer
They do not directly affect contraception, but severe diarrhoea can reduce protection from oral contraceptive pills; follow the instructions supplied with the pill.
Sources for this answer
- NHSNHS · NHS medicine guidance
General medicine information. Follow the instructions for your own medicine and speak to a pharmacist or clinician about your individual circumstances.