Mac Infection via Website Visiting?
Yes it’s possible, no it’s not likely. 

You should do one of three things:


get malware anti bytes for Mac and scan for malware
make your user non administrator if you might be browsing places you don’t trust
reinstall the os if you feel you are very compromised and possibly get help from someone on cleaning


Chances are, a reboot is all you need to do unless beeping and high cpu persist.