It depends on what kind of worms they are. Do you know what kind the cat has?

If it is tapeworm, then she can't catch it by eating the poop because the tape worm segments in the poop are dead. She can only get tapeworm by eating an infested flea.