Yes. Our cPanel has an anti-spam software called SpamAssassin, which filters spam mail.
You can set up spam mail filters in cPanel, automatically detect spam mail with SpamAssassin, and customise the conditions for emails to be detected as spam.
You may refer here for a guide on how to set up spam mail filters in cPanel.