You are correct that having correct theology doesn't necessarily mean that you have a relationship with God
If the law of our God is not written in our hearts by the Holy Ghost it is possible to have "correct theology"?