Yes exactly. There is room for Canadian businesses to profit, and for Canadian soceity to profit through tax income, with no implication to the Canadian public health service - all the while still providing far cheaper products to the US market.
However this would require extremely tight regulation of the drug production market, such that they can’t increase prices in Canada or prioritise selling to the US.