Ah, that old chestnut. My answer, in this scenario, would be - "Yes, so long as that pilot was assured in his own mind that he was mentally and physically fit to carry out his or her duties."
When it comes to mental illnesses, relying on the pilot's assessment of his own condition may not be prudent.