Birth control

This is probably the most stupid question but my cousin would like to know that if a guy cums in you while your on birth control will you get pregnant. (She doesn’t take my word for it)