Yes!
It wouldn't burden existing homeowners because such laws almost always grandfather in existing structures.
When they banned lead paint and asbestos, I don't think anyone immediately repainted their walls or replaced their asbestos drywall. It slowly phases out over a number of decades.