Smoking Marijuana for insomnia

Patient: I haven’t smoked weed in 2 years. I have my final exam for precalculus on Monday. I’ve only been able to sleep 1 time the night before a precalc test. My mom gave me 2 ambien the night before my last test and I still didn’t get any sleep. There have been numerous occasions in which I have forgotten the meaning of words like remainder, multiple, and even sum. I’m assuming that is a result of my lack of sleep. I remember that smoking weed would always help me to sleep soundly at night. If I smoked Sunday night before bed, would it affect my performance on the exam Monday?

Symptoms: Insomnia