In this regard, marijuana is treated like alcohol. It is not legal to have an open container of marijuana in the car while the vehicle is operating. An “open container” is considered any package whose seal is broken or a container whose contents have been partly emptied. Open containers cannot be present within the passenger area, but can be kept in trunks or locked glove boxes.
It is also not legal to operate any vehicle while under the influence of marijuana, whether it be recreational or medicinal. If you are caught doing so, you will be charged with an OUI and can lose your driver's license.