You can cook the butternut squash ahead if you want to use it as part of the component in another recipe, like in a salad or in a wrap. If you want to eat it as is, or near a piece of meat, I suggest you serve it immediately because after cooling it loses a bit of appearance.