As others have said, it’s perfectly fine to do this.
But I’m going to go a step further and say if your game depends a lot on skill, then you should DEFINITELY do this. Capability based on platform is very real, and putting different platforms together may give one platform an unfair advantage.