It’s a common misconception that smegma may contain cancer-causing cells, but this claim has never been proven.
However, the American Cancer Society believes that while smegma itself cannot cause penile cancer, it can cause irritation and inflammation which can increase the risk of cancer.
Keep in mind that penile cancer is rare both in circumcised and uncircumcised males.