The proteins determine the texture of the froth in the milk. Both whole milk and skimmed milk will produce froth.
However, there will be some differences. Whole fat milk typically makes a creamier froth, and most people say it tastes better too. On the flipside, skimmed milk produces a more rigid, drier foam and is often preferred for use with a cappuccino.