Melatonin helped me get to sleep a couple times in early recovery. It is a natural substance produced by your body, not a chemical. I don't see how it could possibly be harmful other than becoming dependent on it to fall asleep (as with any sleep aid).