You know what they say, 'no pain, no gain.'
You should exercise multiple times a week to be prepared for the demands of mountain biking.
Mountain biking can be intense, so being able to ride for a few hours and handle steep climbs helps.