Yes.
Moodledata can be mounted on (something like) NFS.
If you do this, the chances are you will also need to set up a caching server (e.g. Redis). If you do not, the default cache is written to moodledata and a slow, external share will be very bad for your site's performance.