This question is hard to say, but one thing is certain. The sponsor must have agreed behind it. For example, the Cavaliers' Comrade Neurosword often wears shoes from James's contract company Nike, and it is requested by James. Nike had it custom made for him.
Therefore, players wearing signature shoes of other stars can not only help promote that brand, but also ensure the quality, thereby ensuring that they will not be injured while playing.