The ancestor comments are spot on. I just wish it didn't require driving. The good stuff is 10+ miles from where I live. Not that far, but it's still burning gas just to ride a bike.
I also suggest XC / blue / "intermediate" / rolling trails. They're less exposed and dangerous than steep descents, and better cardio. The MTB industry and press is increasingly downhill-oriented, but you can ignore that noise. Before you buy a bike, try renting a few, and riding them on your own local trails. It'll give you a better idea of what sort of bike and riding you want. If you don't have much singletrack nearby but you have dirt roads, consider a gravel or "all-terrain" road bike instead (like a Kona Dew, Kona Rove, or Hudski Doggler). It's not mountain biking, but still a lot of fun, and you cover more ground. (They're also simpler and cheaper than modern mountain bikes.)
Bike fit is important, take your time to get it right. Don't buy the wrong frame size! (I've made that mistake at least twice.) Find a shop (or experienced friend) to help you dial in the fit, and expect to swap some parts. This (and physical conditioning) makes the difference between riding kind of hurting, and being comfy on the bike for 2+ hours.
Obviously you can get hurt. MTB injuries tend to be less severe than road cycling, because you aren't riding in car traffic. But several years ago I tore out my triceps, going over the front of the bike in a rock garden and landing on my elbow. That was a surgery and slow recovery. I'm fine now, and even with that injury, cycling has been a benefit to my health and enjoyment of life.
It can be a gear-intensive hobby. I have a mostly-bikes room. It can also be an expensive hobby (though doesn't need to be). Still much cheaper than motorcycles, sailing, and so forth.
Sorry, one last thing. Be courteous to hikers. Yield to them by default, call out if approaching them from behind. Making hikers feel safe and respected is more important than carrying your speed. When riders forget this, angry hikers show up to meetings and agitate for closing trails to bikes.