Yeah, it should be safe. I had the same thing happen to me and haven't run into any issues.
the pumpkin will return to your inventory.
beautifully simple game. I love the bump mechanic.