Yes, Xbox Realms supports Minecraft Java so it can be played with Xbox Realms but the important thing you should keep in mind is that Xbox Realms is a totally different game space that is mostly used by the developers.