Dogs should not eat dead starfish. Doing so can be dangerous because starfish may carry harmful bacteria and parasites. Additionally, their sharp spines can injure a dog's mouth, esophagus, and intestines.
If you suspect your dog has eaten a dead starfish, contact your veterinarian immediately for advice.