Unlike someone who has been in a role for 10 years, you will be much more familiar with how everything works and in a better position to navigate that market when the time comes. This can only be an advantage.
However, if you switch too often you risk seeming disloyal and a flight risk. All the time and money spent in the recruitment process could potentially be wasted if employers think you will not stay long. Then the employer will not give you a chance. It is beneficial to consider which opportunities are worth the change, at the right time.
If there is a reason to move that you are confident in being able to explain in a future interview, it is likely the time for that switch.