As long as you use a sterilised jar and keep the pesto in the fridge or freeze it. It will keep for up to a year when frozen. It never lasts long in my house though, as I like to eat it straight away!