Can you really get herpes from kissing?

Can you really get herpes from kissing, or is it just unprotected sex?