The fan will be energised whenever there is any heat demand from the boiler – but the pump will only operate when there is a demand for central heating (providing that the boiler supplies Direct Hot Water and not via a storage tank).
Knowing this, you can determine whether it is likely to be the pump or the fan that is responsible for the noise.