I'm not sure if this would be able to detect the difference between truthful thoughts about actual memories, and intrusive thoughts that could give the entirely wrong impression.
Yet, they still do use lie detectors, even though the things they detect can be faked, or triggered out of personal alarm or offense. So it is entirely possible, regardless.
torture not being that effective has never stopped the US government before