No. Most likely you are selecting a destination for the macOS installation which is not permitted. Now if you are trying to reinstall macOS 10.12.x Sierra, then the internal drive will definitely need to be erased as GUID partition and MacOS Extended (Journaled) since the Sierra installer (perhaps even the High Sierra installer) does not understand the APFS file system so it cannot be used as a destination. I have no idea what error message would be given.
If this is regards to creating a bootable macOS USB installer, then here is an Apple article with details:
Create a bootable installer for macOS - Apple Support
You have not provided any details for us to assist you further with whatever problem you have encountered.