This is an extremely exaggerated take. Again, the building codes do not upgrade on that fast of a time scale and even if a house is technically not up to code, they are grandfathered in based on the time they were built. A house that was built 10, 20, even 30 years ago, is still totally fine to live in, even if not up to the most current codes.