If you are doing something illegal and are arrested and you have a child with you, the child is taken away. It doesn't matter what law you break (drunk driving, drug possession, theft, crossing the border illegally, etc...). You break the law and are arrested and any child that is with you is taken away. End. Of. Story.