Yes, but illegal.
You cannot cut into a cactus plant in the wild legally.
I suspect if you where in this very unlikely scenario, the judge would let you off. Listen, the first rule of going into any wilderness, is have enough water and food. Cell phone help too!