Yes. But PackageMaker is EOL product i don't really use it as other Tools exist that have always done a better job ( Iceberg
http://s.sudre.free.fr/Software/Iceberg.html (FREE) or Packages
http://s.sudre.free.fr/Packaging.html , Composer ( Commercial) and good for snapshots.
So you would have a pre-install script that would read the contents of file and determine if to continue i presume ? Then if all is Ok it continues to install a plist or manipulate it using Plistbuddy ;-)