Turning "on" a device which already has power

Could you have used a transistor to open/close that circuit? just an idea.