If sensitisation occurs during the delivery of a woman's first RhD positive baby, it is unlikely that she will produce enough antibodies to affect the baby before it is delivered.
The injection will destroy any RhD positive blood cells that may have crossed over into your bloodstream, either during the pregnancy or during the delivery.