Short answer to your question is Yes.
SharePoint will retain the different versions of the PDF/Zip file. SharePoint doesn't care what type of file it is when it comes to keeping file versions.
You need to enable Versioning for your library from Library settings --> Versioning Settings.
Then you can upload a your updated file with same name and ...