It could be, if I overhauled the add-ons and rebuys conditions to have a more advanced conditions (formulaic). But as of now, no, it isn't possible.
One way to approach this, however, might be to disable the hotkeys for add-ons and rebuys, and use buttons on the Game window to accomplish this. That way, you could restrict when the buttons are displayed by using layout conditions.