For this recipe, I cooked the pasta a few minutes before adding the broccoli. But you can add it the broccoli later for a crisper texture, if desired.