Yes, but it won't taste like traditional pesto. Make sure to blend it well so the spinach is very finely chopped or a smooth paste.