pregnancy right after miscarriage

Hello all, I had a missed miscarriage 24th November :-( since I have stopped bleeding and feel well in myself me and my partner have had sex numourous times, the doctor told me to wait until first period until we try again and I'm not actively trying but I'm not preventing it either. Is it possible to get pregnant before your period after a miscarriage?