Is a secular society the greatest good?

‘The greatest happiness of the greatest number [as] the measure of right and wrong’ creates inequity.