Yes, hackers use keyloggers to record a user's keystrokes on a compromised system.