Yes. You just need to have your script sudo to a non-root user that has unprompted sudo privileges to do the install, e.g. on AWS Ubuntu instances, there is a user named “ubuntu” setup the right way:
sudo -u ubuntu ./ignition-8.1.1-linux-x64-installer.run -- "unattended=text" "user=ignition"
If you don’t already have an account setup for sudo w/o password, you may need to make one first. Roundabout, but workable.