Yes, you can substitute whole wheat or gluten-free pasta if you have dietary preferences or restrictions. Just adjust the cooking times according to the instructions on the pasta package.