Bootable USB for MacOS Installation
You can create a bootable USB from any machine capable of running a version of macOS that has access to the App Store.

If you use a MacBook Air running Yosemite, you can download the installer for High Sierra and use it to create the USB installer and then procede to use it on a MacBook Pro (and every other Mac that supports that version of macOS).

There's no specific installer for Mac hardware types.

(Personally, I keep a USB installer of every major version of macOS - Yosemite, El Capitan, Sierra, and High Sierra)