Yes. You can. For example, you can contract, both, HSV-1 and HSV-2. One does not make you immune to the other.
Shingles, however, cannot be 'caught'. It is not a virus that can be transmitted sexually. However, you can get Chicken Pox from being exposed to the shingles virus if you have not had Chicken Pox or Chicken Pox vaccination.