Yes, to an extent. There are certain laws that have kept people in danger. For example some people drink while driving, although it is illigal some still do it which causes danger
It is also called the real density and is a measured by the total number of people divided by the total land area.
While the population density is the measurement of the population per unit of area or unit volume and is frequently used to a living organism and is a key variable to measure of the population characteristics and pattern.