Yes, they have. And they found it to be correct.
> living in dense inner-city areas did not carry the highest depression risks. Rather, after adjusting for socioeconomic factors, the highest risk was among sprawling suburbs
https://pmc.ncbi.nlm.nih.gov/articles/PMC10208571/