Does keycloak with multiple domain names support mutual sso?

I have a strange idea. If Keycloak is used as an SSO component, what problems will arise when Keycloak corresponds to two domains (domain A and domain B)? For example, if domain A is used for authentication in system A and domain B is configured for authentication in system B, can A and B also perform single sign-on?