It is possible that you weren't protected as unless you start the pill on your period, it takes 7 days for it to be effective. Pills aren't 100% either so there is always a chance.
I'd take a test just to be safe. If you don't want to spend money on it, even if it is only a couple pounds, you can just go to your GP and they'll test you for free.