Im not pregnant just a question

Before my mother had me she had three miscarriages she was I think mid to late 30s maybe even early 40s idk if she had miscarriage’s Bc of her age or if it was just complicated for her body to have a baby, but she had two kids before the three miscarriages and she never had any problems when she was pregnant with my brother and sister. So my question is can miscarriages run in the family? Is it possible that when I want to have a baby I could have a miscarriage as well?