It is safe to use melatonin supplements in the short term to fall asleep and stay asleep. The good thing about melatonin is that it won’t make you dependent on it unlike other sleep medications. However, if you use it habitually, then you may experience a lower response or even hangovers. So, if you have long term problems sleeping then it may be best to look at other means of help to help you fall and stay asleep..