Will a non-return valve stop water hammer?

Will a non-return valve stop water hammer? Non-return valves are designed to prevent the backflow