Can the fruit produced by cacti be eaten?
Generally speaking, the fruits of cacti are edible. A detailed analysis is as follows:

Cactus fruits contain abundant nutrients such as vitamin C, dietary fiber, and various minerals. Consuming them in moderation can help supplement essential nutrients, support physical health, enhance immunity, and improve disease resistance. Moreover, cactus fruits are rich in antioxidants, such as flavonoids and carotenoids, which help eliminate free radicals in the body, reduce cellular damage, and may potentially aid in the prevention of chronic diseases like cardiovascular disorders and cancer.
However, it should be noted that some wild cactus fruits may contain toxins. It is recommended that if you encounter cactus fruits in the wild and are unsure whether the species is edible, you should not easily pick or consume them to avoid possible poisoning.
In daily life, even if the fruit is confirmed to be edible, it should still be consumed in moderation to prevent digestive issues caused by excessive intake. When picking in the wild, personal safety should also be a priority to avoid skin injuries from cactus spines. Additionally, individuals with allergies, weak digestive systems, or other special conditions should either avoid consumption or proceed with caution. If any discomfort occurs, prompt medical attention is advised.