No, 2WD automatic drive shaft will be about 3" shorter than 2WD manual trans.
And regular cab or extended cab matters as well but still a 3" difference.
I think the 4WD drive shafts were the same, to make the front drive shafts the same, the 3" difference was made up for in the 4WD tail shaft housings for the Auto and Manual transmissions, but regular/extended cab rear drive shaft would still be different length, not front drive shaft