Absolutely. Part of mountain biking is the skill and judgment to maneuver on off-road trails. But part of it is simply strength and stamina. The more you have, the longer and better you’ll bike. You’ll develop these faster from an intense session of road biking, than from time on a mountain bike.