The view that an important physicist’s positive attitude towards a religion proves the truth of that religion, or at least the truth of the statement that there is no contradiction between science and religion, is false. It is the classical (and fallacious) argumentum ad hominem, which is encountered in a vulgar form, for example, if one rejects a view just because the person expressing it is disreputable.
Criticism of religion from the viewpoint of the science
Dispute about Religion, Science and Ideology
Then I perceived that wisdom is more profitable than folly,
as light is more profitable than darkness.
Ecclesiastes 2, 13