Answer by Raakhee Venugopal:
Yes, He did. At least in theory He did. He offered to go as a messenger of peace as a last attempt to stop the war. Although He knew the outcome of the visit, He took up the doomed mission on Himself. Lord Krishna wanted the war to happen to end the rising level of adharma in society.