Mass. Gen. Laws ch. 203E, § 404
Trust purposes
A trust may be created only to the extent its purposes are lawful and not contrary to public policy.