Getting Job failure alerts

Hello,

Was wondering if there’s a way to trigger email alerts if job fails after certain retries ?