Yes, the composition and diversity of the microbiome can influence an individual's risk of developing cancer. For example, an imbalance in the gut microbiota, known as dysbiosis, has been linked to increased inflammation and a higher risk of colorectal cancer. Specific bacterial strains, such as Helicobacter pylori, have been directly associated with gastric cancer. Studies continue to explore how enhancing beneficial bacteria or reducing harmful ones might lower cancer risk.