Yes, most animals hate cayenne pepper and will avoid it. However, you might hate it too and it might make a mess.