No, I recommend once you've drained the pasta and turned the heat off, add the pasta back to the pan (or a new pan if you prefer) and then add the pesto. The warm pasta will naturally heat up the pesto, as will any pasta water that you add.