Ovviamente il codice agirà su tutti i tag pre.
Se vuoi che lasci intatte le vecchie pagine, assegna una classe ai nuovi tag e modifica il codice css che hai trovato scrivendo “.nome-classe” al posto di “pre”.
Ad esempio, se usi <pre class="custom-pre">...
nel tuo css avrai
.custom-pre { ... }