Yes, you have an option to record audio with either the microphone or directly from the internal audio source.
You can find this at Settings > Advanced > Screen recorder > Record audio and choose the option you want.
Note: This knowledge is currently only applicable for ZenFone6. Please stay tuned for further updates on our Official Website.