This is precisely what VAM does. Each student gets a predicted grade and they are combined to get an overall class grade.
If things like well-behavedness are correlated with socioeconomic status, they will be incorporated into the predictor. Thus, a low SES class will have a lower predicted grade, and their poor behavior will be part of the reason why.
The only component of student behavior the predictor will not account for is whatever component of behavioral factors which are uncorrelated with SES, but are correlated with the distribution of students between classes. I.e., there will need to be a systematic reason why rich white kids who are more poorly behaved than the average rich white kid go to classroom 101 but not classroom 201.
(If they are uncorrelated with the distribution between classes, they will merely contribute to sampling error. See my response to jbooth illustrating how the law of large numbers makes errors like this a small problem. Feel free to plug in your own numbers.)