Yes, cats can eat eggs. Cats are "obligate carnivores," meaning in order to stay healthy a cat's diet is primarily protein, according to the American Society for the Prevention of Cruelty to Animals.
Much like your cat could pick up roundworm eggs or larvae through contaminated environments outdoors, the same can occur in the home, where they share resources like litter boxes, food bowls ...