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.
citation needed. This meta study seems to not have found many biological links: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1361287/