Yes, you can and you must download and install all the software from the official HP Support website only as they provide the updated versions. Here are the steps you must follow to download and install the software.
Visit the link hp.com/support
Select your country/language
Click on Drivers & Downloads
Search for your printer or model number via the search box
Click on the search button
Select your printer model from the shown search results
Select your operating system to check the compatibility
Click on the driver that you want to download, and click on the Download button.