You can DNA test a baby after birth as soon as the baby has been cleaned up by hospital staff. Because a cheek swab is used, it's important that the baby's mouth be free from meconium, amniotic fluid, breast milk, or formula when doing the DNA collection.