Yes, you can use that. As I planned to blend/grind the green chilies, I used fresh garlic and ginger. If you use ginger-garlic paste, add it with the onions and saute it.