What if you use the same towel after a shower as someone who has genital warts or herpes, can you catch it?

Yes. Depending on the viral load, the amount of serum, mucous or discharge that contaminated the towel, the moisture of the towel, the temperature of the towel, the time since the towel was infected and where you used the towel, you could get or contract these viral conditions. Be careful!