It should speed up the colonization of the nitrifying bacteria. The only downside is if any pathogens came with it from his fish/water. No way to tell without microbiologist testing, but for the future, this is not a safe practice. We quarantine new fish from a store to avoid introducing disease and pathogens, and any object from an aquarium with fish is the same risk. Substrate, wood, rock, plants, filter media...but what's done is done, let's hope he was a conscientious aquarist.
There are many species of bacteria living in an aquarium, but you are most likely thinking of the nitrifiers Nitrosomonas sp. that take up ammonia and produce nitrite, and Nitrospira sp. that take up nitrite and produce nitrate. These are not the delicate critters many assume; scientific study has revealed some facts quite different from the myths we all used to believe. One of these is that these bacteria do not die off so rapidly; they can go into a sort of suspended state. The specific circumstances determine what actually occurs, but studies suggest that nitrifying bacteria can switch their metabolisms, resulting in resting cells, or even by switching from nitrifying to denitrifying behaviour in the absence of oxygen. A lack of ammonia/ammonium can also be overcome, either by just going dormant for a time, or even by using ammonium stored in their own cells.
How long it takes for the bacteria to spring back into action depends upon several factors, but it seems that the more of them there are, the longer it may take. Still, they do not die off as rapidly as some still suggest.
Byron.