Pregnancy after miscarriage

I had a miscarriage in February and 3 weeks after I had unprotected sex. Just trying to figure out what the fertility window is afterwards. Were not trying to get pregnant but also not wanting to stop it as we were trying for the baby we lost.