@Jil Take a look at this thread: Rocky Linux 8 upgrade to Rocky Linux 9
This procedure more or less works, but requires adapting manually depending on what is installed on the machine. It’s not exactly automated as such, like what elevate would most likely do. I had to change a few commands for mine to work, removing some stuff that got in the way (ruby-irb). But other than that it wasn’t too bad. That said, anything can happen, so no guarantees.
Mileage will vary though, clean install being the official and preferred method.