Sex while on period, can pregnancy occur?

The condom broke while me and my husband were having sex. We do not want to get pregnant so he immediately pulled out when it broke. I was also on my period and not ovulating.

Can I get pregnant from this? Why or why not? What should I do?