Move installation files, keep data where it is

I already have NC installed, but I installed the PHP files on spinning disk, I would like to move the PHP files to a SSD, but keep the data where it is. Since NC only seems to keep track of data file locations in the DB can I just move the required PHP files, then edit the config to point the data files to the right place? This is on a Debian 9 machine with NGiNX/PHP-FPM.