Curious why you would think a 24" barrel would be any less accurate than a 26". There is absolutely no fact based reason this would be so. Answer = NO.
Accuracy is borne of quality barrels, ammo, shooter and gun action. It has little if anything to do with barrel length.
There are several members on this forum and others that shoot rifle caliber ammo from pistol length barrels to distances greater than 500 yds. with extreme accuracy.