I replied on the other thread, but I’ll post it here too, in case anyone needs to see it.
Pumpkins are, technically, a type of squash. Each variety tends to have a different flavor, but they can be substituted for each other. Your recipe might need to be adjusted for the varying levels of sweetness.
We’ve got a few crossed threads here this weekend! :)