No, these types of contraception do not protect against STIs. The best way to reduce your risk of catching an STI when having sex (vaginal, anal or oral) is to use a condom.