It is well known that your psychological state influences the immune system a lot, and even from anecdata, you can see that people rapidly deteriorate when they give up. It is not a coincidence all these terms are used.
Can all cancers be beaten by sheer will? Of course not.
But it does play a huge factor in many cases.