Fresh lemons are preferred because they will give you a bright and more natural citrusy flavour, but you can substitute them with bottled lemon juice if necessary. Just not that it might alter the flavour of the pesto. Adjust the quantity of bottled lemon juice based on your preferences, starting with a smaller amount, and adding more gradually until you achieve the desired level of lemon flavour in the pesto.