Only if there would be no side-effects. Which there are.
No this is irrelevant for making this decision
This looks like a long back and fourth, that can easily be solved by a minute or two on godbolt...
No this is irrelevant for making this decision