Pretty much. So-called Christians who don't believe the main dogmas of Christianity are in danger of Jesus saying 'I never knew you'. I'm not God so not going to attempt to split hairs on which particular things may or may not put anyone in that position, apart from very obvious ones like 'believing in another gospel' according to Paul (i.e. a distorted gospel from the one Jesus preached):
Galations 1:6-9 "I am astonished that you are so quickly deserting him who called you in the grace of Christ and are turning to a different gospel— 7not that there is another one, but there are some who trouble you and want to distort the gospel of Christ. 8But even if we or an angel from heaven should preach to you a gospel contrary to the one we preached to you, let him be accursed. 9As we have said before, so now I say again: If anyone is preaching to you a gospel contrary to the one you received, let him be accursed." (ESV)
2 Corinthians 11:3-4 "But I am afraid that as the serpent deceived Eve by his cunning, your thoughts will be led astray from a sincere and pure devotion to Christ. 4For if someone comes and proclaims another Jesus than the one we proclaimed, or if you receive a different spirit from the one you received, or if you accept a different gospel from the one you accepted, you put up with it readily enough." (ESV)