Yes, undercooked pasta is best when making a pasta casserole. Because you will be cooking the pasta in the oven and additional liquid is usually added, it's a good idea to undercook the pasta so that the pasta doesn't get overcooked and mushy.