Grab referrer as hidden field

Would this work if for example

Facebook → Home Page->Contact Us (Form Submit)

Hidden Field = Facebook?