Rohgam shot

K
I am RH neg while my husband is RH pos. I had an early (natural) miscarriage at almost 7 weeks in Feb.
Now I am pregnant again and Dr wants me to have a Rohgam shot. Do you think it's necessary? 
We have not been pregnant before or have any kids.