No, it is not safe to drive or operate heavy machinery while under the influence of medical cannabis, as it can impair cognitive and motor functions, increasing the risk of accidents. Wait for the effects to wear off before engaging in these activities.