Do contraceptive injections make you infertile?

My friend said it did but I think she's scaring me on purpose