Yes, you cook the pasta before adding it to the casserole. Cook the pasta al dente (still firm) before combining it with the other ingredients. If it says cook for 9-12 minutes, cook for 9 minutes. Always take the lower number of minutes for al dente pasta.