A hit batsman is awarded first base, provided that (in the plate umpire's judgment) he made an honest effort to avoid the pitch, although failure to do so is rarely called by an umpire.
If a batter successfully hits the ball and makes contact with it, they are awarded first base, as long as the plate umpire deems that they made a genuine effort to avoid the pitch. However, such calls are uncommon.