For this technique, I recommend it. The idea is to bloom the spices in the oil and infuse the oil with flavor. Without the oil, you're just toasting the herbs and spices which is fine but will give you a different flavor profile. It's also much easier to accidentally burn the spices this way.