Is it possible to have two on click events in one button then execute one before the other

is it possible to have two on click events in one button then execute one before the other

 void Start() {
     someUIButtonReference.onClick.AddListener(SomeFunction1); // first
     someUIButtonReference.onClick.AddListener(SomeFunction2); // second
 }
 void SomeFunction1() {
     Debug.Log("SomeFunction1");
 }
 void SomeFunction2() {
     Debug.Log("SomeFunction2");
 }

You should only need a single onClick function for this. Just do the two functions you need in the order you want them to execute. No need to make it complicated.