Rho gam shot

I was advised to get a rho gam shot after I miscarried but I did not get one. Does me not getting the shot affect future pregnancies? I am RH negative