Does coffee grounds get rid of moles

From what I’ve read, it’s the caffeine that they don’t like. It can agitate them, so they move elsewhere.