If you only way to sell a drug is to convince people they need it in the first place then I think it ought to be illegal, yes. Look at the massive opioid crisis in the USA which stems in great part from pharma pushing drugs people didn't really need and getting them addicted. If that's the only way you can figure out to fund cancer research we have a big problem indeed.
When economic historians of the future consider the current era's pharma industry, they will marvel at how much money was spent for how little benefit. The cure to cancer will not come from pharma. (Quite possibly from biotech, but that's a different thing.) The incentives are wrong: cures are less valuable than indefinite treatments. Look how much they have to charge for the hep C cure. If that were a mere treatment, they could amortize their "research costs" over a lifetime. Even better than treatments that work are treatments that might work. One poor suffering patient might be prescribed 15 such, multiple times a day for the rest of her life.
Still, for many hep C sufferers even an expensive cure is a good thing. Many other conditions respond in agreeable ways to some medicines for some patients some of the time. Maybe the research costs too much for some of them. One suspects that a more rational FDA process could cut costs for most drugs, but no one who would benefit from that has any control over the process itself. The whole edifice is a bit monstrous. Just the same, if the golden goose requires drug marketing, do we really want to do away with drug marketing?