As long as there is a pathogen that causes cancer this should be possible. But not very efficient compared to extreme and fast versions of diseases like Ebola that just makes your tissues unable to contain your blood anymore.
As far as the books I have read about fantasy ,it shows that even the weakest spiritual power can get rid off cancer so even if the bacteria can cause cancer once the bacteria is wiped out it's no longer an issue