Yes, absolutely. While butternut squash is the best pumpkin for roasting, you can use any other pumpkin too. Just check the doneness while roasting, other pumpkins might take less time.