“...If a President commits a crime while in office, he almost certainly is NOT performing his official duties or constitutional “function of the Presidency”.
Then you agree, the answer is “yes”.
The point is that I disagree that operating outside the “function of the Presidency” extinguishes his immunity. If he’s committing a crime then he almost certainly is operating outside his function of the Presidency.