Miscarriage yesterday:( first one. My fill in doctor was less than helpful

I need any info as to if we can try immediately or will I get an infection?And I've been reading it's easier to get Prego right away.