Any substance that can cause or contribute to the production of cancer.