Sure.
You could seperate the leg animation from the upper body.
Or seperate the arms as an individual animation.
Or create an additional full body animation that combines both walking and punching. Then switch to the combined animation whenever it's needed.