Moving the heavy battery under the hood will move the center of gravity of the truck further away from the rear wheels. The last thing you need in a pickup on a slippery road is less weight on the rear wheels. 2 cents, refundable upon request.
I hope you're joking. Moving the battery will have very little effect on the center of gravity. It's only a battery after all, it's not like you're moving the engine around.