I would be a bit wary for hooking up a pump to a rheostat... just make sure before you go and cut the cord off the pump, make sure that the rheostat can handle the wattage required for the pump.
I've installed rheostats all the time when I had snakes... just had to make sure that I didn't overload the circuit.