Yes, you can play ranked matches with crossplay enabled in Overwatch 2. Crossplay allows players on different platforms, such as PC, PlayStation, Xbox, and Nintendo Switch, to play together in the same matches. However, it's important to note that in ranked play, players using PC are usually placed in matches with other PC players, even if they are in a crossplay party with console players. Console players can be matched together across different platforms, but when they play with PC players, they are matched into the PC player pool to maintain competitive balance.
This system ensures that the experience remains fair for all players, considering the different control methods between PC (mouse and keyboard) and consoles (controllers). Crossplay in ranked play expands the player base, leading to quicker matchmaking times and a more diverse competitive environment.