For each of the five positions there is a different salary formula.
For each player, their salary is calculated all five ways. Whichever is the most expensive out of the five is what their salary is and what their listed position is.
So yes, players can change position due to skills increasing (training) or decreasing (age). And when it comes to decreasing, it's random which skill drops each time.