Coffee has a strong aroma and so do the coffee grounds. Deers have strong smell-sensing power so there are chances that they will stay from the plants, though there is no proper evidence available that shows that coffee grounds will deter the deers from the garden.