Hello,
the answer is "yes, but...".
Yes because QM can track the DID code, the queue and the answering agent, and can search and report by these and about twenty other call parameters.
But because Qm is built to track calls that were handled by the queue() command in Asterisk; other calls are - by design - not tracked. So this is okay as long as we are speaking of queue data. Also, you'll have to provide the DID codes by making a small change to the dialplan - Asterisk does not track this information currently.
I suggets that you requesta demo key and run a demo in your own environment so yuou can see if Qm is the right tool for the job.