Can I stop Yahoo mail from pushing spam to my iMac Mail?

Apple Tech support told me that gmail has a setting to stop it from pushing the contents of your gmail spam folder onto your iMac. Does yahoo mail? I bought my iMac last month and am running 10.11
I've alway wondered this as well. If Google is able to stop spam why can't Yahoo? I guess it's one of those questions that can only be answered by Yahoo.

Original thread: https://forums.imore.com/threads/can-i-stop-yahoo-mail-from-pushing-spam-to-my-imac-mail.343909/