macOS Catalina installer customization
Yes, you can edit it but It won’t pass validation.


Apple signs the installer so you would have an invalid package after you modified it.  


Most people script their modifications to run post install. Same with
   scripting things do run without prompting.