You can rename absolutely all kinds of files using this technique unless the file has been restricted or blocked from access. If you are the admin on the Mac/MacBook and you don’t want to allow the other users to edit the contents of files on the computer, you can restrict access to the desired files and folders in order to protect the identity of the folders and avoid unnecessary mischief.