Well kind of. Recoil is a function of the speed/acceleration of the bullet, and the mass of the bullet plus the mass of the propellant.
The difference in speed between a 2" snubbie and a 6" barrel isn't that great.
It's possible for a slower burning powder to not be fully combusted in a shorter barrel slowing the bullet even more.
But for practical purposes the recoil will be the same.
What is different is felt recoil. That's affected by mass of the gun, type and fit of grips, and training.