Yes. When Ḥakīm ibn Ḥizām asked the Prophet ﷺ about the charity, freeing of slaves and kindness to relatives he had done before Islam, the Prophet ﷺ told him: "You became Muslim with all those good deeds" — that is, their reward was not lost. So Allah, out of His generosity, credits the righteous deeds of your past life once you enter Islam, even though they were done before you believed. Someone who was previously a Jew or Christian, believed in his prophet sincerely, and then believed in Muḥammad ﷺ has an even greater share: the Prophet ﷺ said such a person has a double reward. None of this means acts of worship done before Islam were valid in themselves — the point is that Allah does not waste the good you did, and your new life begins with your past sins wiped away and good recorded.
Q&A · New Muslim
Do the good things I did before I became Muslim still count for me?
Evidence — the daleel
Sahih al-Bukhari 1436 ṢaḥīḥSahih Muslim 123 ṢaḥīḥSahih al-Bukhari 97 Ṣaḥīḥ
On deen2u
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.