Is it possible to limit liability by contract?

Is it possible to limit liability by contract? The well-established legal basis in Quebec regarding contracts is the principle of freedom of contract. The legislator in Quebec decided to intervene ...