Yes. Religious institutions are allowed to discriminate based on religion. This is one of those things that makes total sense if you give it some thought. It would be pretty unconstitutional to force a religious group to employ people who are opposed to their religion.