If the plug goes offline, can I control the device plugged in the plug?

Yes, as long as the plug is powered on.