This will depend on both the language you are analysing and your analytical framework, but in most cases both nouns and pronouns could be categorised as a subcategory of the nominals. Other subcategories of the nominals include (in some languages) proper names, participles, adjectives, and co-referencing affixes/clitics. The nominals could also be called substantives.
Nouns and verbs are the two arch-categories of the open word classes. If a word can take morphology such as case, gender or number, then it will usually be analysed as a nominal. The different nominal subcategories will have different restrictions on which morphology they can take. Or if there is no difference, then it can be argued that what would be two word classes in one language are actually one word class in another. The adjectives are the classic example of a word class that can be either a pure nominal, a pure verb, a pure independent category, or something in between.