The pumpkins we use to make jack-o'-lanterns are not typically grown for the purposes of eating, so if you want to cook with pumpkin you'll want to find pie pumpkins or sugar pumpkins, which are specifically grown for cooking and eating.