No, not all types of cactus can be eaten. For example, the prickly pear cactus [Opuntia spp] is a fruit bearing plant. Its fruits may be green, purple or red in color. But it's the green colored fruit that tends to be eaten fresh or processed as jams and jellies. The darker colored fruits tend not to be flavorful.