Permission is granted to every person, if he wishes, to direct himself to a good path and to be righteous, etc.; and this is a great principle and the pillar of the Torah and the commandment.

רשות לכל אדם נתונה אם רצה להטות עצמו לדרך טובה ולהיות צדיק כו' ודבר זה עיקר גדול הוא והוא עמוד התורה
Shiurim in this topic
10419. On the Who is a Jew Law, Jewish Identity, and Halachic Integrity על חוק מיהו יהודי, זהות יהודית ושלמות ההלכה