Is it safe to dispose of coffee grounds down the sink?

We’ve all flushed coffee grounds down the plughole when washing the coffee pot or cafétiere. But is it something we really should be doing?