Yes, it does not apply to the same or similar similar groups, provided that the earlier trademark is not a well-known trademark.
As long as the trademark has not been registered, or two or more different applicants have not applied for the same trademark name at the same time, then trademarks with the same name can be registered in different categories. Article 22 of the Trademark Law stipulates, "