Yep. It's most important in the years leading up to, during and after menopause to eat plenty of calcium, do weight-bearing exercise and, if necessary, take Actonel, Boniva or Fosamax. There is even a generic Fosamax now that is enormously less expensive. The calcium and exercise are more effective than the medication.
Good genes help a lot.