It is more than likely a pump problem if it started and idled ok. Unless the pump gears was purposely jogged around when the old pump removed and new one installed you have 2 choices for install, correct and 180 out. One way will run, the other won't even start.
If the trucks starts good, idles good, doesn't smoke white like crazy look for the pump to be the problem. Even then, it may not be a pump problem but the wrong pump build. The timing curves on a these engines were different in a multitude of vehicles. You could take one from a bread truck install it in a pickup and it will start, run, and accelerate. What happens is the timing curve is way off and under hard acceleration it will start popping, nose over, and throw tons of white smoke. Under easy acceleration it will seem to run fine.
You can get them close with a dial indicator but to do it exactly takes a gauge on the back of the pump to measure lift at degrees of rotation. For the most part, it is not needed if the stock timing and pump is used.