It does take it into account, however I can't attest to what extent.
That said, if you are patient they will slowly gain/lose weight towards the ideal for their switched position. So if you're willing to wait three to four seasons that 240 LB player might be hefty enough to make the transition if you switch him to guard now, haha.