Yes. Coffee grounds are rich in nitrogen source for the composting. It helps to improve the water retention, drainage and aeration of the soil. Using coffee grounds with compost also encourage to attract worms and other beneficial microorganism for the plant growth.