No. A person does not have to attend church to go to heaven. However, church attendance is one way of showing God that you love Him and want to please Him. The Bible says, "For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life" (John 3:16). If you believe in Jesus Christ as your personal Savior, then you will go to heaven when you die.