Basically, yes, but maybe not for the reasons you think. Old web sites are usually not mobile friendly. So many people use their mobile phones these days that Google will rank mobile-friendly or mobile-first web sites higher than web sites that are not mobile friendly. So, an older web site that is not mobile-friendly will now rank lower than a newer site that is.