Yes, coffee grounds can repel ground squirrels. For optimal results, it is advisable to use fresh coffee grounds and replace them frequently. To boost the effectiveness, consider incorporating additional elements like peppermint oil or hot peppers into the mix.