Maybe, but as I see it, it has also to do with intelligence in combination with empty and the ability to doubt truth. More if you want to.
But the non-believers don't have a faith telling them that homosexuality is wrong, or that females are destined for certain roles, or that they will be punished for whatever. One can't dismiss an external authority (religious teaching) as having no effect on many. I'm not suggesting that being non-religious will inevitably make one to have saintly behaviour but one has a better chance when there are not some of these influences determining one's beliefs - and which often are divisive.