Alternatively you can boot from the Recovery Drive and install a copy of Mojave on the thumb drive. If you have a WiFi connection and even if your Recovery Drive is toast the system will boot from a Recovery Drive on Apple's servers. These days, I can't find much use for a bootable install CD/DVD/thumb drive except to run third party volume repair utilities and the occasion for doing that is becoming ever rarer.