Soap dispenser

The soap dispenser door will not automatically open during wash cycle. Do I need to replace the dual motor that trips the soap door latch mechanism?