You may GENTLY heat pesto, but it shouldn't be cooked. The herbs will turn very dark in colour when cooked, and typically if you're adding pesto to a hot cooked dish, there will be enough heat to warm it up.