No. It will only prevent you from making your partner pregnant. If you or your partner has an STI the best way to protect yourself and your partner is to use a condom.