Yes, that's the correct way to do it, i.e. use the output from the original relay as the input to your new one.
The old wiring is irrelevant, as it's only powering the relay, not the pump!
The relays ground isn't important, but the pump ground is, otherwise it defeats the object of rewiring!
Martin