Should population density in cities also be measured in hab/km³ rather than hab/km²?

We are used to stacking people vertically in cities.