Not normally; gram flour has a very different set of properties to plain (wheat) flour; it contains no gluten which means that when plain flour is replaced by gram flour, the structure of the baked...
I've been cooking with rice flour for years now, and it makes baked goods more crumbly unless you add a starchy flour like tapioca or arrowroot with it. I say yes, you can use plain flour in rice...