Does changing tire size affect the speedometer?
Yes. The speedometer counts wheel turns, not distance, so any change in overall diameter changes what it shows.
Why the reading changes
The car assumes one wheel turn covers a fixed distance. A taller tire covers more ground per turn, so the car moves faster than the dial says. A shorter tire does the opposite and the dial reads too high.
How to calculate the error
Divide the new overall diameter by the old one. If the result is 1.017, the tire is 1.7% larger: when the dial shows 100 km/h you are really driving about 101.7 km/h, and the odometer under-counts by the same ratio.
The 3% rule of thumb
Many manufacturers and inspection rules treat a diameter difference of about 3% or less as acceptable. Under 1.5% is usually unnoticeable. Above 3% it is worth checking your vehicle documentation, insurer and local regulations before you buy.