The correct option is B For conservative forces only.
In case of non-conservative forces, the work done is dissipated as heat or sound but it does not increase the potential energy. But in the case of conservative forces, work done is responsible for increasing or decreasing the potential energy.
Work done by conservative force =−ΔU