That statement is false.
Religion pretty much determine the scope of principles that influence what is right and what is wrong for a certain individual.
On average, people tend to see someone that has a same religion as them to be more favourable compared to other that do not have same belief.