It was probably okay but do not allow your cat to habitually eat cockroaches because some people put poisons out for cockroaches and that could make your cat sick or worse. Pets who are loved by humans cannot be safely used for pest control because of the risk of poisoning.