The pop in J-pop means "popular," so if a group/song is popular/known/similar among the general (mostly young) audience, it's generally considered J-pop regardless of whether it's rock, R&B, etc.
Jpop is generally used to distinguish the type of music from other types of Japanese music such as Enka.