Only if AC has codeshare flights with UA out of its Canadian hubs. There are plenty of codeshare flights between New York and Toronto, for example, but I don't think AC codeshares with UA to Tokyo; it does codeshare with ANA.
Generally, you can credit other airlines (AC) to your UA account and earn PQM/PQS/RDM, but you do not get credit for PQD unless tickets are plated on UA 016 stock.