Yes, certain foods like onions, garlic, spices, and dairy products can contribute to bad breath. These foods contain sulfur compounds that are released during digestion and can linger in the mouth, causing odor.