A:Answer Yes and no. It uses infrared so you need line of sight. The cabinet front would have to be glass. On a side note, I hardly use my Yamaha A/V receiver remote. It comes on and turns off automatically with the TV via CEC* or ARC. Plus it switches inputs as a device is turned on (PS4 for example). Roku remote controls the volume. So, only on occasion would you need to open the cabinet. Say to switch to FM or Bluetooth for example.
*Consumer Electronics Control (CEC) is a feature of HDMI designed to control HDMI connected devices[1][2] by using only one remote controller; so, individual CEC enabled devices can command and control each other without user intervention, for up to 15 devices.[3]:§CEC-3.1 For example, a television set remote controller can also control a set-top box and a DVD player.