Safe?

I had sex on the combo pill after a little over two weeks on being on it and i protected from pregnancy???

Would the pill be effective by then?

(I started taking it on my period)