Had sex while on period

I had sex with my partner when i was on my second day of period, the thing is the condom broke and we didnt realized it till minutes later, but we didnt finished. So i was wondering if this could get me pregnant? And if so should i take a plan b in case?