Yes, a DNA test can be safely performed on a baby. The DNA sample is collected via a non-invasive cheek swab, which is painless and safe for individuals of all ages.