If so, yes I suppose that could be true. Fewer people would die in traffic accidents if we had a stoplight on every corner, we had to drive Sherman Tanks, and the speed limit was 20MPH. The problem is we'd be way less productive and we'd be much poorer.
If China had Japan's strict building codes from 1980 to present, China's economic growth would have been far slower, but in an earthquake, more people may die in China. Is that a good thing or bad thing? Over the last 20 years, strong economic growth in China has likely saved far more lives than strict building codes may have saved. But that is too complex to get into here.
Also note Japan's poor economic growth during over the last 10-20 years.
Are some people in Japan better off because of strict building codes? Yes, no doubt. Is everyone in Japan better off due to strict building code? much harder to say.