Focal distance is the same for all lenses. If, for example, you get two hypothetical lenses; one fixed focal-length 50mm & set it to f/8 & a 18-55mm zoom lens & set it to exactly 50mm @ f/8 & assuming that both those lenses have the exact same color saturation, sharpness.. etc. image quality & use the exact same settings on the same camera & shoot the subject from the exact same angle/distance @ the same lighting conditions, you'll get the exact same image out of both lenses.
Focal length is focal length, it's a way to describe the angle the lens covers, so the angle covered by a 50mm lens should be the same angle that is covered by any other lens, if both are used on the same type of sensor ie. Full-frame, aps-c, aps-h, micro four-thirds... etc.
PS: f/8 was just an example, instead of using f/X, to show that you need to have the same lens settings on both lenses.