A small amount of people experience hair loss as a side effect of having a contraceptive injection, but this is not normally noticeable, and most people won’t experience this side effect at all.
If you have an injection and experience side effects that you are worried about, talk to your healthcare professional as there are plenty of other birth control methods you can try.