Not necessarily. Riots can begin when bad actors take advantage of the cover of numbers provided by a peaceful protest. If there are enough bad actors, usually masquerading as peaceful protesters, to reach critical mass, then a riot can start.
All it takes is for one person to break a window to signal to the other bad actors that the riot is about to begin. This piece by Tanner Greer [1] examines the phenomenon in way more detail than I do here.
[1] https://scholars-stage.blogspot.com/2020/05/on-days-of-disor...
What if we saw a bad actor at a rally for a politician, and then bring the full force of the state upon the entire crowd because of that bad actor. It would be absurd to use that opportunity to mace and teargas and shoot rubber bullets to disperse the crowd. It is equally absurd to do the same here in political protests.