aliexpress tuya wifi smart plugs. Do they work on wifi network NOT connected to internet?

sometimes my cable modem is dead, but wifi router/home network still works. So I want to reboot my modem remotely through wifi.

Do tuya smart plugs work when there is no internet, but there is still wifi?

does the app allow this?