Yes, you have an option to record the audio from either microphone or internal audio.
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.