Worms and other parasites can cause diarrhea in cats and in fact it’s a pretty common cause. If you suspect your cat does have worms (it’s usually pretty obvious from a quick inspection of the litter tray) it’s best to speak to your vet and treat with their recommended medication rather than testing something on your own.