Yes caterina, you can contract herpes from another person that is infected. Usually through vaginal or anal intercourse, but it is also possible to get it if you have come in contact with the open sores on the infected person, then touch your mouth or genitals. It can also be passed if the person has herpes around their mouth and they give you oral sex, or visa versa.
Hey, sounds like you're asking if you can get hpv/genital warts from someone who only has genital herpes. My understanding is that you cannot, only the herpes itself in this case. However, it is not uncommon for individuals to have both herpes and warts, and for that individual to not know that they do have both as either can exist in a latent state that is not easily visible.