When does the pill work?

I started taking the pill 10 days ago, I had unprotected sex on day seven! Could I be pregnant? How long does it take for your birth control to start working?