THC, the active compound in cannabis, can temporarily impair short-term memory. The effects are dose-dependent and vary from person to person.