When is it the safest to have sex?

Im new to being active sexually and I wanna know when it’s safest to have sex if it’s after my period, before or there’s specific days