Can the pill get u pregnant?

If i only took it for 6 days and i hade unprotected sex could i get pregnant?