​Yes, I like to boil spaghetti noodles to al dente when I'm going to put them in a cheesy pasta casserole like this one. The noodles will continue to cook in the oven, so don't overcook them.