That’s what you were taught and it’s NOT truth.
To God be the glory for HIS WORD is Truth. JESUS, The WORD is The ONE WAY, the ONE TRUTH, and the ONE LIFE. Those who believe in HIM/THE WORD has eternal life. I have eternal life because I believe HIM ALONE. NEVER man and their man made teachings/doctrines/traditions.
Choose LIFE!
I was taught what you were taught, but I realized that what you believed was heresy.
I only have you to answer to, not God. Sola Scriptura, Sola Fide, etc. are human traditions invented by petulant revolutionaries.