birth control

If I'm on the pill and me and my boyfriend have sex, can I still get pregnant? Please answer