While coffee grounds can contribute to soil acidity over time, it's best to use specialized pH-adjusting products for more precise control.