Select query for multiple pages

Sure: https://getkirby.com/docs/developer-guide/advanced/hooks

And there are also quite a few examples here in the forum, just use the search at the top.