I don’t think you can.
But maybe try to when you add to the extendedFields of the updateContact function some data about whether or not you should run the automatic code, and then on the backend event add a condition to run the code only if the info is true.
P.S. I’ve never tried it.