Its not a very good idea if you are using different menu layers overlapping each other with lots of buttons on each of them, as then only buttons on top will be clicked all the time or you have to disable the button's "click through" option each time you hide them.
So in my opinion it would be better if an option called "click only when visible" would be a better option to be added, as we generally hide the layers not in use but their buttons are still clickable which is a major problem.