No, every company elected the men they liked the most. Popular men won over experienced men, if they even had any.
Hell, in the Mexican-American war, someone was elected Captain of a southern regiment on account of having shot an abolitionist once.
Oh, by the way, I looked it up - the colonels of the 2nd, 4th and 27th Virginia had never served and had been politicians before the war, and the colonel of the 5th Virginia had served in the Mexican-American war, but never saw action.