Cross-resistance can take place between compounds that are chemically similar, like antibiotics within similar and different classes.
That said, structural similarity is a weak predictor of antibiotic resistance, and does not predict antibiotic resistance at all when aminoglycosides are disregarded in the comparison.