Hi Ron,
Yes, you can, have a read of this thread:
How to attach a server-side function to a form-page button? - How do I? - Five Community Forums
As you read through the thread, you will see how it is done.
I have added a link to get some more information on executeAction() too.
executeAction() | Five | Low-Code For Real Developers
Kind regards,
Jo