Regarding legs, yes, you typically use the same muscles on the legs. When mountain biking, you generally do more upper body than road and require more protection, such as tougher helmets. Mountain biking generally comes with more equipment for the upper body because of this.