Yes. It is possible to select multiple artifact types as part of an advanced query. A very similar process is used to define cross-project queries which include multiple projects.