Still possible to learn from other people's errors. Also I think these kinds of messes always have the same history. Lots of time pressure, technical debt was ignored... On the upside when being a bit more senior it's much more likely management actually listens to requests to keep technical debt in check
The good part of changing jobs is you get to see actually a lot of bad and good stuff, often even at the same project.