Because that is user-customizable, so perhaps not… [1] but you can get all the categories of the site, yes.
Unless, of course, one uses JavaScript to loop through each element in that section, but that’ll be quite inefficient. ↩︎