For some items, you are correct. If you renovate an area and use the existing stairs where they are, even if not to code, you are ok. If you remove the stairs and install new ones, they must meet code. If you have a basement, then it does not have to meet code. If you renovate that basement and make bedrooms, then they must meet code, have fire egress windows, two means of exit, and smoke detection among other things