You can only use the 2013 iMac as a monitor if the machine connecting to it is running High Sierra or earlier, so would need to be a 5yo OS, which won’t run on anything newer than 2017.
Updating libraries usually goes without a hitch, but make a backup copy first, so you can revert if necessary (probably won’t be necessary).