Yes, in-game behavior is a major factor in moderator selection. Developers and community teams look for players who naturally embody the qualities required for the role.
In summary, a spotless in-game record builds the credibility necessary for consideration, but it is the foundation, not the finish line.