The biggest problem with the Action button found on iPhone 16 and iPhone 15 Pro models is that it can only be set to do one thing. However, by setting it to run a custom shortcut, you can get your Action button to perform different actions depending on which Focus mode your iPhone is in.
Source : How to Change Your Action Button Based on Focus Mode