I have shot varmints with a 22rf at well past 100 yards a scope makes hitting ones target a lot easier.
All my 22s have scopes on them.
Using my old 22 with a scope, I “shot” a fox directly in the chest at about 25 yards using a scope. It had zero impact on her. I chased her around the yard as she killed two of my chickens and I could not get a bead on her because the scope got in the way.
So I have mixed feelings about scopes with a short range firearm.