I guess it is. Did you ever see it run? Is that pump motor 120 or 230 v? Guessing 120 wired but dual rated if it was originally wired to that recept. I would put a new relay back there and run some cheap 18 ga direct bury wire from the solenoids to the controller plugged into a separate outlet. Get the relay wired and pump working first. Then the other is simple.
Wp law is local to us, not sure who you can find for a supply house but here is some info from them on wiring