For this recipe, we cooked the spaghetti prior to mixing with the other ingredients. Then, we added the cooked spaghetti mix to the baking dish and layered on the ingredients. You could also add the spaghetti mixture to muffin tins & layer on the remaining ingredients - makes for kid-friendly portions once baked.