calling a method after deliver

Hi, I am trying to call a method after message is delivered via MyMailer.deliver_message. Is the below the same as this? MyMailer.deliver_message create_sent_record?

class MyMailer < ActionMailer::Base def message( subject, body, recps, sent_at = Time.now)     @subject =subject     @body = body     @recipients = recps     @from = 'noreply@asdf.com'     @sent_on = sent_at     @headers = {}

    create_sent_record # is this being called after MyMailer.deliver_message???   end end