Yes, bacterial infections can lead to cancer. For instance, Helicobacter pylori infection is a major risk factor for stomach cancer. The bacterium induces chronic gastric inflammation, which can result in DNA damage and mutations, promoting the development of gastric cancer.