Yes! The pasta won't have time to cook in the oven, so it has to be cooked before adding it to the sauce.