The condom broke 🙁

Today my boyfriend and I had sex and the condom broke. He pulled out immediately because we both felt it. What is the possibility that I would get pregnant? Should I get emergency contraception? Also I recently got off birth control about 4 weeks ago. I have been spotting and my period is irregular because I recently got off birth control. Please help me 🙏🏽