Yes. It is clearly a medicine. Cannabis itself can be used in a variety of different ways. When it is formulated as a medical product, to be used for a medical indication, it is clearly a medical product.
It does have recreational uses, historically as well as currently. I think, historically, many people who were using cannabis recreationally were actually treating some underlying medical problem that they may well not have been aware of.