What is the meaning of [there’s many a good cock come out of a tattered bag]

Do not be misled by external appearances—it is what is inside or what emerges from something that counts; also used to imply that people should not be judged by their parents, clothes, or background