Depo Shot

What are some ways to end your long period while taking the depo shot ? I’m getting my shot in a week , will that end it ?