Yes. Marijuana contains a group of compounds known as cannabinoids. In a study, cannabinoid intake showed a significant improvement in people with insomnia (6).