I don't think there would be any problems. They do two completely different things in the body so there should be no be no compatibility problems. I will let you know that some people suggest
melatonin for a short term fix only though, that you aren't supposed to use it all the time. I have used melatonin before in the past but noticed that I built up a tolerance to it after a while.