No, not like condoms. If STDs became blockable with common sense and condoms started shipping with perforations and prickles on the inside then yes, but that's not the case is it.
One obvious difference is that the consequences of mistakes can be higher for STDs then for infected computers, but that's the analogy.