Yes, it's an easy swap, but pumpkin is less sweet than banana. That's why I love this recipe. Using half pumpkin and half banana provides the perfect amount of sweetness.