Oh, brother. Many catholics do exactly what you are saying. THey go to church but live like hell afterwards. We are all sinners.
Belonging to the Catholic Church does not guarantee salvation, of course not.
It is the Way of salvation; but it is hard and not all will walk the Way until the end.