does birth control cause you to miscarry

so say you get pregnant even though you're on birth control, if you didn't know you got pregnant and you continued to take the birth control would it cause a miscarriage?