Absolutely! This recipe is quite versatile and you can substitute butternut squash with other vegetables like sweet potatoes or even lentils such as red lentils. However, keep in mind that the cooking time may vary depending on the vegetable used.