Can miscarriages run in the family?

I really don't want to seem stupid but I'm curious. My mother had 2 miscarriages,my fathers mother had about 2 miscarriages,my mothers mother had miscarriages and a still born and my oldest cousin miscarried her first baby. My other cousin is pregnant with her first at 26wks! I'm just worried that it could run in the family. I know there's really no truth to this but I don't know how I would handle it if it happened!!