Buzzing when door is closed

The microwave emits a buzzing sound when the door is closed, whether the microwave is on or not. Could this be the control board?

There are usually 3 different parts that can cause a buzzing sound in microwave ovens, the capacitor, the magnetron and power diode.