If they are clustered using erlang clustering, yes.
https://erlang.org/doc/man/global.htmlNote that this works by taking a transaction lock on the entire cluster, so it's not recommended if you're making requests frequently. It also doesn't respect netsplits, unless you instruct in code to fail with a deficient cluster membership.