The short answer is yes. While pesto can last a really long time in the fridge when properly stored, it all depends on how you store it. So, if pesto doesn't look, smell or taste like it should or has mold growth, toss it.