You might be a little bemused by this question unless this has happened to you! It’s worth mentioning however that when pumpkins are exposed to too much light, they can turn green! If you’re using canned pumpkin puree this shouldn’t be an issue. If you’re making your own, store your pumpkins somewhere dark until needed. They’re safe to eat when green - they just look a bit odd!