Is marijuana an opiate drug?

Does it work through artificial opiates (similar to the body's natural endorphins), or does it affect people through some other way?
I know that heroin and morphine are artificial opiates, and although they are much more damaging than marijuana, do they work the same way?
9 answers 9