That is part of it. Also look at the bond order, as sjb suggested - remember that in general, double bonds are shorter than single bonds. And look at the possible resonance forms available for the two different structures - the actual structure will resemble a blend of the relevant resonance forms.