Yes.
You can create a local variable of the boolean button and set it to Write.
The one catch is that the boolean cannot have a latching action. So if you need it to pop up after it is read, you will need to simulate that action in your code by setting it back to false right after it is read using another local variable.