A method for controlling pressure in a wellbore during a perforating operation can include positioning a perforating tool within the wellbore, where the perforating tool comprises a gun and an energetic chamber. The method can also include igniting an energetic within the energetic chamber to generate a propellant. The method can further include igniting at least one charge within the gun, where the at least one charge is ignited toward a wall of the wellbore adjacent to the gun. The method can also include directing the propellant from the energetic chamber into the gun.