well i can tell you it is most likely ONE problem, it seems that the 2nd code was caused by the first one, and probably one of the transmission solenoids, or (hopefully NOT) the TCM itself
is the truck exhibiting any symptoms? shifting oddly, shifting too much, NOT shifting when it should, skipping gears, ect. ect.??????
the more information we have the more likely we are to figure out what the problem is for you
EDIT:btw: i am assuming you have the 4.7l engine w/ the 545rfe transmission, correct me if i am wrong