A player gains $ value when you add to his Q directly, yes.

When you train him another Role or a Special Ability, it does NOT change his listed Market value, but DOES affect how much people are willing to pay for him. Most of the time, an extra Role or Ability allows you sell him at max value, and often enough you get more than Market value because other players see his worth.