There is no conclusive evidence that chili peppers can fight cancer or cause cancer. But red pepper, black pepper, curry and other spices, can protect the cell's DNA from radiation damage, especially gamma rays. If long-term exposure to a large number of gamma rays, it can easily interrupt the cell's DNA, in a short period of time is no reaction, but if the cell's chromosomes are mutated there may be cancer. So from this point of view chili peppers have a certain anti-cancer effect.
You can also learn about chili peppers from Baidu Encyclopedia: /view/31125.htm#sub8829676