writing mpd library to nfs share

I’m using volumio on a raspberry pi to access my music on a NFS share and I’d like to have the mpd library stored on the nfs share along with the music files so that I don’t have to reindex the whole music database everytime I have to reinstall the system. Is it doable ? Would setting
db_file “/mnt/NAS/tag_cache”
in /etc/mpd.conf on the raspberry pi work ?