Bringing any type of drug into or out of a country is illegal in most places, so don’t bring them with you when traveling (or at least make sure it’s legal first).
Driving under influence of drugs is also illegal in most places, and for good reason. Do not drive under influence to avoid any problems.
Many places do not allow the use of drugs in public, even when they are legalized for recreational use. Make sure it is legal before lighting a joint in a public place.