Yes, this is true. Damien was the only musical artist invited to perform that day but I'm sure he's met Thom by now. Perhaps they ran into each other when the film makers were conducting the recording session for the musical score. And then, in a spark of inspiration, they both agreed to write a song together and record it on the spot!
One can wish