Yes, you can prepare the salad a few hours in advance. However, it's best to add the avocado just before serving to prevent it from browning.