Yes, because the child is a part of society, and will affect it, for better or for worse. I believe, too, that there is a particularly heavy obligation when the family in question has been subject to oppression and marginalization. Suffering, pain, addiction and anger related to oppression must be addressed.
There's a situation in Canada, for example, where Aboriginal Peoples are over-represented in prisons and in the child welfare and foster-care systems. The legacy of extreme and systemic abuse by the government is felt to this day. Along with racial and cultural genocide there was, in that not-so-distant past, and almost as if by design, spiritual and sexual abuse in residential schools. Not to mention the everyday racist contempt that that is alive and well in Canada. Well, how do parents and children fare with the odds so stacked against them? Too often, very badly. Yes, the community beyond the family DOES have an obligation.