Apparently so... Imam Ibn Hajar Asqalaini records in Fathul Bari:
اني اشترطت على معاوية لنفسي الخلافة بعده
"Hasan said:'I placed a condition on Mu'awiya that I will become leader after Mu'awiya"
In al Bidaya it reads:
وقد كان معاوية لما صالح الحسن عهد للحسن بالأمر من بعده
"When Mu'awiya made peace with Hasan, he made a promise that leadership would go to Hasan after him"