Trying to stop all spam email from getting through is tough, but there are ways for you to thwart the majority of it.
You can block emails on your Mac if you don't want to get mail from a certain sender using the Mail app.