Question: are sure and yes the same thing?
Answer: Yes says that you definitely agree with, or are willing to do what was asked of you. And stating it in a formal way. Sure says that you might not want to do it but will do it anyway. Or agreeing to what is being asked of you in a less formal way.