I'm rephrasing your question as "Can cancer be beneficial by providing immortal properties to an organism?" The answer is no because transformed cells (cells that have been deemed cancerous due to their uncontrolled replicative potential) lose their "differentiated" ability. That is, they stop functioning like they were supposed to. For example, a tumor in the liver (which decided to stop growing) is not beneficial to the liver because it doesn't do what liver cells are supposed to do (like synthesizing digestive and metabolic enzymes, etc.) If anything, it steals resources like nutrients away from functioning liver cells nearby. This tumor may not be lethal but it certainly isn't helpful.
I'm rephrasing your question as "Can cancer be beneficial by providing immortal properties to an organism?" The answer is no because transformed cells (cells that have been deemed cancerous due to their uncontrolled replicative potential) lose their "differentiated" ability. That is, they stop functioning like they were supposed to. For example, a tumor in the liver (which decided to stop growing) is not beneficial to the liver because it doesn't do what liver cells are supposed to do (like synthesizing digestive and metabolic enzymes, etc.) If anything, it steals resources like nutrients away from functioning liver cells nearby. This tumor may not be lethal but it certainly isn't helpful.