Comment Depends on company culture (Score 1) 360
If they have a culture where the developers are allowed to focus on code quality, then if it's "bad code" (as subjective as that term is) you'll have a shot at fixing it. Code quality is a result of developer experience and the required development pace; the worst situation you can be in is where 100% of engineering time is spent on feature development and bug fixes, with no time allotted for maintenance work.
But like a poster above said, if you really are just sick of legacy code, work for a startup; that's what I did.