Are social factors related to health?

Social factors are related to health. For example, a person lives in a poor and backward society, with insufficient nutrition and substandard medical and health conditions. Can people be healthy? If you live in a developed and wealthy society with superior medical conditions, people will be easy to get healthy and their average life expectancy will increase.