If you can find a brand new but heavily discounted Google Pixel 5a, then yes, it's still worth buying. However, if the difference in price is not that big, then you're better off buying the Google Pixel 6a as it will be supported for a longer period.