Unfortunately, I can't say, but I haven't tried. It might be difficult because, for example, the touch surface of the Apple TV4 remote control is missing.
The touch surface is not a problem. I have all the functions as normal push buttons on my Logitech Harmony 900 (works perfectly). Unfortunately bought a One for All before, this could not be taught for various other remotes. Contacted One for all support and got a huge "how to" letter. No time and no desire to work through a whole paper.