TrueNAS is just web-based configuration management. As long as you only use the web UI, your system state can be distilled down to the config file it generates.
If you do a vanilla FreeBSD+samba+NFS+ZFS setup, you'll need to edit several files around the file system, which are easy to forget months down the line in case of adjustment or disaster recovery.