Yes, they will work with any device running iOS 12 or newer and MacOS Mojave.

You will need to update to iOS 12.2 (currently in beta) in order to use the new AirPods
"Requirements:
iPhone, iPad, and iPod touch models with iOS 12.2 or later
Apple Watch models with watchOS 5.2 or later
Mac models with macOS 10.14.4 or later"