Yes, you could lose child custody in Illinois due to drug charges. The court will order a drug test if the other parent lodges a drug abuse complaint. This could lead to custody being revoked and mandated rehabilitation. Your criminal record can affect your custody agreement, depending on how the judge rules. Felony drug charges could impact your custody even if the other parent does not complain. It could result in supervised visits with your child.