So lately my period has been coming a few days early

Is it possible to ovulate as soon as your period is over?

I had sex on the second to last day of my period he came inside me and o didn’t take a plan b. Is there a chance of pregnancy?