Yes, it needs. A well pump, as well as a submersible pump uses the metal switch box and casing; it needs the ground connection as a conductor of the circuit.