No,
PGcourse.pl
was meant as a place where you could put course-wide customization and other setup functions. It is useful for things like the "Show Source" button that we have in some example courses that allow you to view the source code of a problem, or (as in your case) adding the re-randomizing macros to all the files.