Mother is illegal alien father is illegal alien can a friend take custody of child?

well they would have to be adopted or the friend would have to be a foster home