Yes. In general, I think it's safe to use a phone for another 1-2 years after it's stopped getting security updates, but as time goes on, it becomes increasingly important to follow good security guidelines while connected to the web.
Just to be clear, if it is the A53 5G it's only halfway through it's cycle of four (maybe three) Android updates from Android 12 at launch in March / April 2022, with the promise of 5 years worth of Security Patches. So Android 15 and probably 16 to come with monthly to quarterly Security Patches until March - ish 2027.