Yes, iPhone has a handwriting keyboard. To use it, go to Settings > General > Keyboard and turn on the "Handwriting" option.