This study analyzed the effect of the digital educational environment and digital educational experiences on academic achievement, within the context of their growing prevalence driven by recent digital transformation policies in education. It also examined whether these digital-related factors moderate the effect of family background on students' academic outcome. To achieve these objectives, the study analyzed data from the OECD PISA 2022 using two-level hierarchical linear modeling, focusing on high school students. The results indicated that economic, social, and cultural status (ESCS) remained a significant predictor of students' academic achievement. ESCS were also partially associated with digital literacy, which in turn influenced academic achievement. It was confirmed that both the quality of the school's digital learning environment and the extent of teaching and learning using digital resources contributed to the improvement of academic outcomes, regardless of family background. However, these digital-related school factors did not significantly reduce the achievement disparities attributed to family background. Based on these findings, the study proposes educational conditions and tasks necessary to effectively reduce achievement gaps.