Ответ:

No, Tom did not thank Philip because Philip left before Tom could thank him.