Melatonin is used for both pediatric and adult populations, but proper dosages and considerations for individual health conditions are crucial, especially for children.