hi
i think the answer is yes
a note on via midi can bee seen as a button click. it can have the binding as a button.
read the docs here for the midi element
and here for the binding
may be you take the boilerplate and tune this to your needs, though there is no button but you can "steal" a button here
greetings