In the National League (which, until 2022, did not use the designated hitter rule), pinch hitters sometimes bat for pitchers.
In the National League (which, until 2022, didn't implement the designated hitter rule), pinch hitters occasionally took the place of pitchers.