Medical marijuana can be helpful for chronic pain control, but there are some important things you need to know to use it safely and legally.