Would Shocking Grasp prevent the target from casting Absorb Elements?

If a creature uses Shocking Grasp on another creature that uses its reaction to cast Absorb Elements, will Shocking Grasp, which stops a creature from using reactions, prevent the casting of Absorb Elements since Shocking Grasp should happen first before Absorb Elements does?