Summing feature importance for a set of features


In my model, I have a lot of predictors and I divide these predictors into 6 groups. Then, I want to get the importance of every group. Can I sum the Gain of variables in one group and take this values as the importance of this group? Or is any other suggestion to do it? Thanks a lot !