Wrong. Starting from what you have in mind for 24 hrs a day is important. If you think evil, then you are already comitting a sin. Going to a place of worship is does not guarantee of sin washing. It is only, to be presence at the house of god, for some.