A professional code can only be binding on those who have signed up for it, which will mean members of that profession. Of course there are elements in any professional code which are much the same as legal or ethical requirements in the wider society, but issues like, for instance, doctor patient confidentiality only apply if a special agreement has been made.