In most cases you’ll need an inspection when you go to buy a home. Anytime you’re changing a house you have to ask yourself “Will this hurt the ability to resell it later on?” This is going to end up on an inspection report and it’s either going to have to be remedied or it’s going to drop the value.
Codes are enforced at finalized at the local level. We’ve only abandoned stuff at the federal level, so far.