Yes password protection is supported - providing that you know correct password for the archive.
If you do not have correct password - the zip/rar file will still open but you will not be able to extract content.