I think that would be an individuals choice ! If dealing with Depression it is easy to listen to what the body is telling you! If the tryptophan improves your mental state then by all mean go for it! If insomnia is a problem then sure give it a try!
I do not believe that melatonin is a good long term solution as it is a androsterone which if supplemented the body will stop producing it, further adding to the complications!