Yes, you understood correctly.
Conversely, a code of conduct could protect the public in the event of non-compliance, such as when a fishery officer refuses to carry out their duties.
The RCMP has a code of conduct enshrined in the Royal Canadian Mounted Police Act. They drew up a list of reasons that frame situations in which officers must exercise their powers or intervene. Failure to perform their duties is a violation of that code. In a criminal situation where the police refuse to act, there would be grounds to file a complaint. There's disciplinary action associated with that.
In summary, a code of conduct would protect both the public and fishery officers.
