Fan switch wiring separated

I have a fan switch working perfectly where the old switch was. The line, load, and neutrals all run directly to the fan and light. Since the switch is really an RF controller, can I technically wire it to anywhere with a hot and neutral, independent of the the canopy wiring?

I’m thinking of moving it to a spot that is right below an outlet. So instead of rewiring from the canopy, I would just pull the hit and neutral from the outlet.

Has anyone tried this or know if it’ll work?

Yes this will work, but you’ll also have to rewire where the old switch was so the fan is receiving constant power.

I ran my LZW36’s wired to a lamp cord and plug to initially pair them to my hub and also test them, with the light/fan and canopy controller wired to a second lamp cord and plug…