ok so i recently had sex and the condom broke

and my boyfriend and i had some concerns that i might be pregnant, but i got my period and when i told him that everything was ok he said that theres still a chance i can be pregnant so i looked it up and found out that theres such a thing as early pregnancy bleeding but i also started taking the pill. So now i don't know what to do. What happens if i keep taking the pill? i can't be pregnant HELP!!!