Pumpkin cake will keep at room temperature for up to 4 or 5 days. So, if you'll be eating it within that time-frame, it will be fine. However, if it's unusually warm in your kitchen or if you will be taking longer to eat it, it should be refrigerated.