I would hold up Bach, Ockeghem, Josquin, and others as examples of composers who worked in sacred forms and who did very good work in them. (And while I can???t recall any secular work by Ockeghem, Bach and Josquin both did secular work of comparable quality and value.) But I think you may be referring to liturgical music outside of that Catholic, European tradition, and from what I???ve seen, yes