Yes, some pipe organs had enormous switching systems. They didn't do all that much; they just switched the keyboard to pipe rank connections. Physically, they were huge, like multiple upright pianos. Some needed compressed air for power; others were entirely electrical.
They had no direct function in producing sound. All this was separate from the actuators for the pipes.