If you run out of ammunition for your main weapon, you can use your secondary weapon for support.
Your sidearm will be your mainstay as your secondary weapon. There are different types of sidearms, and when used correctly, they can be just as deadly as your primary weapon.