Turning on lights with Wyze cam V3

Is there a way to have a light plugged into a smart plug of a different brand and controlled by Alexa turn on for a period of time when the cam detects motion/person ? I want to make sure if someone comes into the garage they know something is watching them.

I imagine you could set it up as an Alexa routine. When this cam detect motion, turn on this plug.

Edit: just tried it, yes it works.