Yes, it is the same mechanism locally and across a network.
The overhead from RMI could be avoided locally, but it is so low I didn´t bother.