They certainly do in earthquakes. Even in areas that nominally don’t have earthquakes, some parts of the building code will surely be about ability to withstand a rare earthquake.