It depends on how the file is synced or shared. If the file is saved only on your iPhone or iPad, renaming it will not affect other devices or platforms. But renaming shared or cloud-synced files will get changed across all devices and platforms that have access to the file.