Yes, coffee grounds can repel slugs and snails due to their abrasive texture and caffeine content.