Yes, you can cook broccoli and pasta in the same water. It infuses the pasta with flavor. Drain the pasta and add it to the sauce, then cook for a minute on medium heat while stirring.