Sure! This eliminates the need to bake it, but I would still simmer it a bit on the stovetop to help the pasta absorb the flavours from the sauce and the mushrooms. Make sure to stir occasionally and coat the pasta.