As an inspector, my answer would be yes, provided the controller meets the requirements of the code for a motor controller. I have seen a controller probably not unlike the unit you are talking about. Some of these controllers are for single pumps and some are duplex. In the installations I routinely inspect the controllers are located within site of the point where the pumps are submerged and the controllers have an integral switch which serves as the motor disconnect.