Yes of course! Cherry tomatoes also work great and will create a slightly sweeter taste to the pesto