It will work. I used something similar for my home theater setup and it works no problem. Here's the one I got:
https://www.amazon.com/gp/product/B07FDNP3MY/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
used with this:
https://www.amazon.com/gp/product/B019Z5PDB6/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
You can also use a Cat-6 cable if you have one running between the two points. I used this method to control my projector while the Logitech hub is in my rack in another room about 40ft away.