Answer:
I don’t think that our immune system would be weaker for novel viruses, because our immune system isn’t trained to work on unknown viruses. The immune system does work on known viruses, however for the virus to be detected, a person needs to have been infected the first time: so by induction it doesn’t matter for one person. Although population effects might matter (herd immunity, societal systems breakdown).
Background:
The immune system starts with a random generation of attacks. As a foetus the immune system learns to NOT detect its own cells (by removing any self-attacks). The immune system is left with the ability to detect a variety of things that are not its own cells.
The immune system also trains to not attack common environmental factors, which prevents allergies, but AFAIK that training stops within a few months of birth (there is a special organ for this).
There is a popular theory that if the immune system isn’t given something to attack then it attacks itself (creating auto-immune diseases) so we should “eat dirt” to prevent that. AFAIK there is no scientific consensus about that. Certainly we have counter-examples where viruses cause autoimmune diseases e.g. Epstein-Barr virus causing Multiple Sclerosis.
The immune system also trains to be able to quickly attack things it has attacked before. So it provides protection against some variation of some repeat viral infections because new variants might have the same attack point. This works better against repeat bacterial infections, because bacteria have more features to detect, so the immune system is more likely to have some defence against different variants. This part of the eat-dirt theory is a bit better, but still impossible to calculate the costs versus benefits. Personally I don’t try to “eat dirt”, but I mostly make little effort to avoid “dirty” things because the effort seems mentally costly (avoidance that worked would be socially damaging, IMHO).
Our cells are spaghetti code, the worst technical debt created by the random chances of evolution. There are multiple competing systems (e.g. telomeres) at cross purposes. Think trying to patch up bad software: you can perhaps make some small improvements to reliability, but overall there are so many thousands of errors due to design flaws that you cannot fix the system overall.
To fix cancer would require some extreme design challenges. We can fix a few of the bugs e.g. we reduce mutations by using sunblock. Perhaps we could copy some systems from other animals - hard but perhaps not impossible.
After we fix cancer, we need to fix cell aging, which the most obvious effects start kicking in about 60ish. Oh, and we also need to fix brains: they fail in complex ways. Human lifetime problems are fractal trees, not linear steps.
What we call "cancer" are the cancer cells that managed to slip past the body's defences, so "curing cancer" doesn't necessitate addressing all cell copy errors. We just need to figure out how to deal with the small handful our body can't address.
You seem to be suggesting we could find a way to detect harmful cancers and ignore benign cancers, but I am fairly sure that any “detection” couldn’t be discriminating enough (~100% true positive) to say it was a cure for cancer. Also cancer is often noticed once it has already caused damage, perhaps harmful damage, so your cancer is “cured” but the patient would sometimes get loss of function.
Cancer is because cells do not copy their data exactly - sometimes because the copying process is imperfect and introduces faults, and sometimes because viruses introduce faults.
There is a stupidly large number of different copying faults, so there is a stupidly large number of possible types of cancer. Cancer is entirely dissimilar to many other diseases of the body.
To cure cancer requires either preventing all copying faults, or detecting all copying faults and fixing them. This is hard - essentially requires completely replacing the normal cell splitting process, and/or the DNA checking process.
Removing viruses from our environment would help reduce some cancer problems.
Also note, old age is in large part due to telomere shortening: that is a process evolved to help fight against cancer growth (many cancerous cells reproduce and are then killed by apoptosis due to reaching a fixed number of cell reproductions).