Unplug power to turn off controller?

Would it be possible to make it such that unplugging the DC power turns the controller off until either it’s plugged back in or the USB is cycled?