Correct, just like if pot wasn't illegal, cartels wouldn't be involved. They'd be doing other things still. But they legalization of weed in certain states, has little to do with what the cartels are doing.
One exception being California making pot crimes not felonies so it is more difficult to prosecute gorilla grows. Cartels have been having gorilla grows in California since before that law changed and they wouldn't care either way.