While it is safe and not poisonous to eat the whole thing, you want to avoid eating the choke and the fibrous outer portion of the leaves as they pose a choking hazard. Technically, if you cook them long enough they may soften enough to eat, but most preparation methods focus on just eating the meat, artichoke heart and part of the stem.