Blood type?

Kate

My husband has A positive blood and I have O positive and had a miscarriage... I didn’t have the Rhogam shot could that have been the cause or is it just something that could’ve happened out of it being my first pregnancy?