you can eat all of the pumpkin - except for its stalk.
smaller varieties such as onion squash have deliciously edible skin, the skin of larger varieties may be too tough to eat or less than appealing. for types such as the butternut squash, whether you eat the skin or not is down to personal taste.