No. State laws control men in their capacity as citizens of the state. But a Priest does not hear confessions in his capacity as a citizen of the state. He is acting, not as a human being, but as an agent of God. You might as well oblige God, since He knows all things, to reveal all crimes to the police. The Priest would never have known had he not been doing a duty in the name of God. In any case, he is obliged by both the natural and positive laws of morality in this matter to die rather than reveal such things.
Radio Replies Volume 1 by Rev. Dr. Leslie Rumble MSC and Rev. Charles Mortimer Carty
