How safe is the pill

I have been on the pill for a good two years but have recently started having sex without a condom. How safe is the pill?