It is far from ideal, while it would work, I would regard it as a short term solution, it is hard on the pump and not really to be recommended. If this was for a week or two while a new controller was coming in that is made for controllable DC pumps that is about the only scenario I would do this under. The switching time is rapid and the cycling is harsh and especially hard on the power supplies.