Sex on BC

How safe if sex when you're on the pill? If you have unprotected sex what are the chances of getting pregnant ?