Religion doesn't make you a good person any more than sitting in a chicken house will make you a chicken.
Going to church won't make you a christian, nor the synagoge--a jew, or the temple--a buddist, etc.