Choose a quieter evening instead. Get your puppy settled indoors before dark, with a place they can retreat to if the noise starts. Close curtains, keep doors and gates secure, and play familiar background sound if that helps. Stay with them or arrange for someone they know to be there. Let them seek you out or hide, you won't make fear worse by offering comfort.
Socialization doesn't mean seeing everything at once
A puppy learns best from gradual experiences they can handle. If a sound scares them, adding more of it isn't a lesson in bravery. Save sound practice for a calm day, at a very low level where your puppy can stay relaxed. Real fireworks can include flashes, crowds and vibrations that a recording doesn't recreate. Keep sessions short, and stop if your puppy becomes worried.
If your puppy is trembling, trying to escape or unable to settle, focus on safety and speak with your vet. They can check for other factors and help with a plan for future events. Don't force a scared puppy outside to toilet during the display, plan an earlier trip and follow your vet's advice about safe outings for your puppy's vaccination stage.
Tonight, decide who will stay with your puppy and set up their quiet room before the first bang. You don't need to take them to the display to give them a good start. For preparing for future loud nights, see the fireworks and noise-fear guide, skip the public display and give your puppy a safe place now
Sources: Dogs Trust on fireworks. Dogs Trust on gradual puppy socialization.