Yes all codes will be cleared including crash data/crash history.
But if module is defective that will not clear the bad module code. Usually this happens if the module just failed (vehicle was not in an accident)
The regular codes can come back. (Not crash data) When the module goes back into the car and problem is still with airbag, seat belt, sensors then the light will be on a code will be in the module.
But then these codes will be cleared by themselves once the problem is solved or can be cleared with a scanner after the bad sensor, airbag, seat belt issue was fixed.