Yeah, used for rituals etc. I think most of the world too. It's also used in medicines. Ayurveda has always used it. And of course, modern medicine uses its contents.
But I wonder what made weed illegal in most countries? I assume it happened not so long ago. Perhaps a century.