No. Password protection only allows users with that password to access the file. File permissions, allow the systems to access the files. Adding a password to a file does not prevent WordPress from accessing it.