There is no reason why an atheist could not write a good Mass.