yes but 2 engines with the same displacement but different bore and stroke, the one with a smaller bore is gonna have less force pushing the pistons down.
Since the expanded gases have less area to push on.
You have to keep in mind that the bore has exponential influence on volume than stroke... Area = Pi * radius squared... Radius is half the bore, so radius has more influence on volume than stroke, therefore the radius is not a 1:1 influence vs stroke on volume... Radius is bore halved, then you square it to get volume...