Is 13 inch small for programming?

I have an macbook pro 2019 16” 16/512 i9, but i want to upgrade it to apple silicon macbook, but i only can afford 13inch m1/m2 air. is it worth it for me to switch from this mac to m1/m2 in case that i’m a developer?

I have an macbook pro 2019 16” 16/512 i9, but i want to upgrade it to apple silicon macbook, but i only can afford 13inch m1/m2 air. is it worth it for me to switch from this mac to m1/m2 in case that i’m a developer?