Yes, you could argue that the articles of association is something like a contract the described and specifies the relationship between the company and the shareholders as well as between the shareholders themselves.
The articles of association specify everything that relates to corporate governance such as the role and the powers of the management and the shareholders, the way that this power is going to be exercised and the ways that the management is going to be monitored and controlled by the owners of the company.