A dowel pin fixes the relative position of two parts far more precisely than a bolt through a clearance hole, which is why it is used for tooling, fixture plates and mating machined components. It works in shear, so the hole fit and the pin hardness both matter.
Decide whether the pin should be a press fit in one part and a slip fit in the other, and confirm the diameter tolerance, material, hardness and chamfer. Check that the pin can still be driven out for service, and that the hole depths leave room for the pin without bottoming.