Flying while pregnant

Danielle • Dated my husband since December 2006 and we were married May 2016. Baby boy Henry born June 2nd 2017 👶🏼💙
My husband and I are considering taking a "babymoon" for the weekend to our favorite vacation spot Vegas to just have some yummy food at our favorite resturaunts, see a nice show and swim in the pool and spend some quality time together before the baby born. Is it safe to fly while pregnant and go through the metal detector machine? I will be 27 weeks pregnant, so far smooth pregnancy and due date June 16th. What are your opinions on this, has anyone done this?