Correct, monetary inflation can make some people richer at the expense of others that it makes poorer. What monetary inflation cannot do is make society-at-large richer. In fact, it makes society-at-large poorer.
https://mises.org/library/inflation