Yes, it will last well in the freezer for up to 6 months in a sealed container. Another top tip is freezing it in ice cube trays and once frozen, transferring the cubes to a bag or container – you can then grab just the right amount of pesto for your next recipe instead of having to defrost it all.