No, but there is an O(1) solution to the problem of incrementing a non-negative integer represented as an ASCII string, if you modify the string in place. I won't spoil the fun for you.
Note that the "solution" that ChatGPT proposes as O(1) is not in fact O(1) because it copies the input to the output which is necessarily O(N) regardless of how much dodgy logic is inside the function.