Yes Pepper Plants do like coffee grounds and the coffee grounds will help the pepper plants grow better and produce much better too.
Pepper Plants love the fiber, hydrophobic lipids and essential oils that coffee grounds naturally contain.
You can sprinkle some coffee grounds around the pepper plants and then work them into the soil around the pepper plants or mix the coffee grounds into some compost before planting the pepper plants.
You can also add used coffee grounds to the compost pile which helps the pepper plants and other plants in the garden grow.
A lot of flowers also love coffee grounds too so mixing them with potting soil or compost is a good idea instead of throwing the coffee grounds into the trash.