You can't play players out of position, but you can designate certain players by their roles to play in specific formations tailored to take advantage of their strengths.
For example: Throwing deep, you only have your fastest WR's in that particular formation, leaving a slower guy (who might have great Technique) out. Another example: Running inside, you play only your strong OL, not necessarily the faster, pass blocking OL.