Yes, but on the bike the tyre remains the same radius therefore a rotation is the same irrespective of the magnet location.
If you buy a cheap speedo they don't say put magnet @ "X" distance from the axle centre. You just input tyre circumference.
Imagine looking at your bike wheel, you place...