If we look at the scientific research, certain studies have claimed that aspects of creativity could be enhanced with cannabis (often based on self-reports rather than objective measurements), but those results are inconclusive at best. Cognitive impairments due to both acute and chronic cannabis use are much more well-documented. Here is a review of executive function deficits due to cannabis use:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3037578/
Here is a study that found low-potency cannabis had no effect on creativity, while high-potency cannabis impaired divergent thinking: https://link.springer.com/article/10.1007/s00213-014-3749-1
If you want to argue that cannabis should be legal, I have no issue with that. But the way to go isn't to say "it's a cognitive enhancer", which it is not to the best of our scientific understanding.