The One Piece anime doesn't keep up with the manga precisely. There are differences in the order of events and the speed of story advancement. But both versions have their own charm and appeal to fans.
The One Piece anime usually lags behind the manga by a considerable margin. The production of the anime takes time to catch up with the ongoing manga storyline.
The One Piece anime in 2022 was mostly in sync with the manga. It accurately depicted important battles and character arcs, although some artistic liberties were taken for the animation's sake.
In my view, both have their pros and cons. The manga allows for more imagination and quicker pacing, while the anime adds visual and auditory elements that can enhance the experience. It ultimately comes down to what you value more in a storytelling medium.