Yes, it’s possible. You can install a wall-mounted toilet, and the pipes can be rerouted. But you’ll need to build a false wall to conceal the piping, which will reduce your toilet space.
One potential problem is if there’s a choke that can’t be cleared by normal methods. If that happens and the pipes need to be replaced, you’ll have to hack the wall to access them.