Yes but there are other factors. Shotties are heavier. On pistols optic is in line with recoiling part as it moves, on shotgun optic sits above the path of bolt's travel.
In recent past there has been one specific longarm with a reputation for being hard on optics, and that is a SCAR. The common explanation was a specific recoil impulse or momentum because that rifle uses a very heavy bolt carrier, even though the perceived recoil is rather mild.
I think there are too many variables to be certain about anything. I am just glad we have durable optics these days.