Some companies will need you to maintain older code. This is fine, as long as you can agree on boundaries of maintaining old code, or better yet converting that old code to new code.
See All 160 Episodes of "The Tech Interview Guide Podcast"