If a pitcher throws a ball that hit the dirt and the batter swings and hits it is a fair ball?

It Is Fair As Long As The Batter Swings

And They Hit The Ball... As Long As It Is Inside The Foul Lines

The Ball Is In Play.