sex when you are not ovulating

Olivia
If you are having unprotected sex right before your period or right after when you don’t ovulate are there chances to get pregnant?