Yes, as previous user Le said, use new get_data function. But you only need to change the parameter auto_adjust to get the column “Adj Close”:
data = yf.download("spy", start="2025-01-01", auto_adjust=False)