Will it protect me from getting an STI or AIDS?

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.