Those engaged in the sacred disciplines have a just freedom of inquiry and of expressing their opinion prudently on those matters in which they possess expertise, while observing the submission due to the magisterium of the Church.
Source: Code of Canon Law (Vatican.va)