Yes, because it will take longer to cook if you add the dry pasta without boiling it first. Plus, you'll be needing more liquid to fully cook the pasta. And adding more liquid means diluting your sauce, too. Thus, affecting the quality and taste of your pasta bake. In short, cook your pasta first for the best results unless the recipe asks for uncooked pasta. ;)