Depends on the price, surely?
A 2080Ti is approximately on a level with a 5060Ti (from a quick search), though obvs does not support the newer DLSS features etc. So to get a good upgrade you’re looking at a 5070 or better.
If this gives you a performance boost for less $$$ …