Yes, you can prepare the avocado pesto ahead of time and store it in an airtight container in the refrigerator. However, mixing the pesto with freshly cooked pasta just before serving is best to prevent browning and maintain the best texture.