Can you ovulate right after your period?

I got pregnant last January and the only time we had sex was right before my period and right after my period.