Depends on the airbag module used. Some need to be replaced, while others do not.
In some cases with new cars (Opel Corsa-D) the airbag module is even part of the anti-theft and needs to be coded by a dealer.
Check with your dealer to see what applies.
Or sypply a bit more information here. Car make, year and model. Airbag system used, etc.