Can an illegal immigrant under voluntary deportation be awarded custody of a US born child?

it depends on the circumstances that the child is living in. it should matter the child's well- being foremost and first.