Like many other things in world - it's not a binary yes or no. It's about what the judge or jury will believe. If you say you don't remember your password but they pull up logs and show that you have just used that password 3 hours earlier, then jury will almost certainly find you guilty, even if yes, there is absolutely no way to prove what the objective "truth" is.