Connect the opener to the door opener device

Hi,
Can I connect the wires directly to the door opener ( for example DO- 003 photo attached) (blue and purple wire or … )?
Thanks