Yea, that's what I've typically been using it for.
For example, I have a table that I run through when switching specs to see if a setting is enabled for certain abilities and whether or not their respective talent is learned.
Lua Code:
rowList = {
[1] = Auras.db.char.aura[1].Thunderstorm,
[2] = Auras.db.char.aura[1].EarthElemental,
[3] = Auras.db.char.aura[1].LightningSurgeTotemEle and select(4,GetTalentInfo(3,1,1)),
[4] = Auras.db.char.aura[1].EarthgrabTotemEle and select(4,GetTalentInfo(3,2,1)),
[5] = Auras.db.char.aura[1].WindRushTotemEle and select(4,GetTalentInfo(2,3,1)),
[6] = Auras.db.char.aura[1].GustWindEle and select(4,GetTalentInfo(2,1,1)),
}
If like that is a lot cleaner than _,_,_,isLearned four times. Granted, this code only runs when I switched specs, so its usage is fairly minimal