No, they give a letter of resignation to the next President, who decides whether to accept it or not(so at the beginning of the next term). Chao felt the need to resign two weeks early, leaving a bit of chaos. There was some reason she did not feel she could stay in the job, even for two more weeks.