Yes, composting can contribute to disease prevention. By breaking down organic waste, composting can eliminate pathogens that may be present in food scraps and yard waste. High-temperature composting, in particular, can kill harmful bacteria and viruses, thereby reducing the risk of spreading diseases through soil and plants.