concieving after miscarriage

i had a miscarriage on 10/16, i stopped bleeding on 10/20 and started having unprotected sex almost right after as you can see. im just curious, is it possible to conceive before your cycle comes again right after you’ve had a miscarriage? my s/o and I have sex frequently! im just unsure when my cycle should appear after a miscarriage and when i should get a pregnancy test.