No, going to church does NOT guarantee that you go to Heaven.
You can go to church, every Sunday, for your whole life, and still go to eternal damnation in Hell, if you do not agree with the Holy Bible.
For example, Romans 1 clearly shows that God hates homosexuals and considers them as condemned and delivered over to evil (eternal damnation).
All Christians who love homosexuals or tolerate homosexuality in society will go to eternal damnation in Hell.
Any preacher who preaches loving homosexuals encourages homosexuality in society and will go to eternal damnation in Hell.
The Holy Bible never ever says God loves homosexuals, so it is a lie about God that offends God!