Is it okay to take Melatonin?

Marie
When TTC or possible pregnant (in tww) is it okay to take melatonin? It the all natural sleep aide? I have severe anxiety and don't want to take my prescription of Xanax but need something to help me fall asleep! Help!