Yes and yes. The distance between the front and rear sight makes a big difference (geometry). But it's also the shooter and the ammo. BRASS. Breath, Relax, Aim, Slack, Squeeze. Sight picture consistency, proper position, and so on. You'd be surprised at how many people really don't know the basics of shooting and think a more expensive gun will make them good shots. Don't expect the mechanics of the rifle to overcome the failings of the shooter. Same goes for handguns.
I've fired near perfect scores with a variety of rifles (and handguns) from .22 match to M1, M-14 & M16 issue guns, and the biggest variable is always the shooter. I've put .22 thru the hole in a Lifesaver candy at 50yds without breaking it. Don't muscle the rifle to get on target, use bone support. For example, in the prone position a slight movement of a leg in one direction or another can mean the difference between a bullseye and a miss. Time your shots between heartbeats. Read the wind. And many other factors.