It is not a silly question. We can put it through the paces.
The question you are getting at is, "Did measles evolve to keep cancer at bay?" Or stated in another way, "Did it evolve because it was keeping cancer at bay?" The 2nd question is more attuned to our understanding of evolution.
For this to be the case, cancer must have been killing a significant number of people before they reached the reproductive age. However, we know cancer rears it's face well passed people have reached reproductive age. For women, breast cancer the most common of them all becomes rampant post-menopause.
With this view point, it seems unlikely that measles was an evolved response to cancer. Because, this has been a hand waving argument it has not addressed the ratios required for an evolutionary response, i.e Is it possible that cancer was killing enough (however small) prepubescents and that gave measles a chance to evolve?
Or, could it be that there was a way milder measles like virus that people acquired (like the common cold virus) and lived with henceforth and that protected them from cancer?
There are many interesting questions that come up.