It recognizes it. But you'd have to be close enough... And I doubt it will count... Besides, you still need wave beam to open the one morph ball hatch.
But you'd have the wave beam at that point. Right now you have to go through the morph ball area, see the switch, come back, get Wave Beam, go back to that area again to shoot the switch. If you could go up the platforms after getting the Wave Beam and shoot the switch from below you'd save a fair amount of time.