port 80 is http which is needed to access the internet. Port 443 accesses http using SSL. Secured internet.
If the software you are wanting to use needs to access the internet, then yes, those ports are safe. Some applications may download updates automatically, therefore would need those ports open to do so.
And if you close those ports your browsers may not work.