It largely depends on where & how you intend to replace ginger & garlic. Here in this recipe, it is a suitable replacement. Go with it.