FPS animations for different purposes?

I’m making a game in Unity which is an fps. Do I need to make separate animations for sprinting, walking or even jumping if the player holding a gun, melee weapon or nothing in his hands?

No. Using the Mecanim animation system you can apply animation layers. This means the arms can be running on a different animation to the rest of the body.