In California, it is not legal to do so, but the building inspectors claim to be over worked and cannot make the time to check into all of these things.
As a hard working young person, it is very disconcerting to see what is happening. We have to compete with families of immigrants whom our parents never had to and are told just to drink our medicine. It sucks. A nice house where I live is around 650K and up.