Could I be pregnant?

Q - I've been on the pill for almost 8 months now but recently I've been having really bad stomach pains and my doctor asked whether I was even though I'd already said that I use the pill, me and my boyfriend had sex about a week ago and the condom spilt and I've had these pains since then and I've been really ill so I was wondering could I be pregnant?