MODERATE Using sertraline together with melatonin may increase side effects such as dizziness, drowsiness, confusion, and difficulty concentrating. Some people, especially the elderly, may also experience impairment in thinking, judgment, and motor coordination. You should avoid or limit the use of alcohol while being treated with these medications. Also avoid activities requiring mental alertness such as driving or operating hazardous machinery until you know how the medications affect you. Talk to your doctor if you have any questions or concerns. It is important to tell your doctor about all other medications you use, including vitamins and herbs. Do not stop using any medications without first talking to your doctor. ~Drugs.com/interactions-check.pfp
You should probably ask a doctor about it, but to me it seems reletively fine.
Edit: another website states there is no known interaction between the 2, but that's because it remains mostly untested.