It would be best if you didn't heat pesto because it can affect the aroma and make it taste not very pleasant and bitter.