Yes, that should be no problem. Make sure that you have the cpp and g++ packages from your linux distribution installed. But I recommend that you do a backup of the directories /root/ispconfig, /home/admispconfig and the ISPConfig database before the update