This information is correct. This is because the order of classification is domain, kingdom, phylum, class, order, family, genus, species. Since class comes before family, the two organisms could be in the same class, but then when you specify further, they could be in different families.