Should I buy my car at the end of the lease?

My car lease is ending and the residual is $13000 (original MsRP was 25K but I think they’re selling for about $30K right now). With car prices sky rocketing right now, should I be buying it? TIA