The contraceptives available in pill, injection, intrauterine device, vaginal ring, patch or subcutaneous implant do not protect against sexually transmitted diseases (STDs). The primary function of contraception is to avoid unwanted pregnancy, but it is not able to avoid STDs as the condom is capable.
O condom both male and female are effective for prevent STDs and is also a contraceptive method to avoid pregnancy.
Therefore, even those who take contraceptives are advised to use condoms to avoid diseases that are transmitted by sex.
Regarding the efficacy of contraceptive methods, the contraceptives mentioned above have a slightly higher efficacy than condoms to prevent pregnancy. But all, when used correctly, are able to prevent 98 to 99% of cases.