While melatonin is generally safe for adults, its use in children, including 2-year-olds, should be discussed with a pediatrician. Children's bodies naturally produce melatonin, and supplementing it may interfere with their natural hormone balance. Professional guidance is recommended for children's sleep issues.