is a hit by pitch a walk
Therefore, a base on balls does not affect a player's batting average, but it can increase his on-base percentage. A hit by pitch is not counted statistically as a walk, though the effect is mostly the same, with the batter receiving a free pass to first base.