In a general sense, this is correct. However, many codes have elements which also contain additional internal dof's which are associated with the elements, but which increase the dof count significantly. (Incompatible modes elements are one such element).
Brad