According to Togo they did:
>...Meanwhile in the afternoon of August 8, before the entry of the Soviet Union into the war or the bombing of Nagasaki, the emperor met with Foreign Minister Shigenori Togo. Shortly after the war, Togo affirmed that the emperor stated the war must end at this meeting. New evidence now confirms Togo’s account that it was the atomic bomb that moved the emperor to decide to end the war.
https://www.nationalww2museum.org/war/articles/japans-surren...