Should someone who loses their memory still be found guilty of the crime they committed?

Jaquelynn
If someone commits a crime, let's say murder, but during the trial, or before they're convicted, they have an accident and lose their memory completely. Should they still be found guilty? Idk why but the other day while showering this all of a sudden popped in my head and I've been wondering ever since.