My mom had me and my sister a month eariler is that genetic?

Allie

My mom had me a month early and my sister tried to come 3 months early but she was put on bed rest and still came a month early. Is this genetic? Is it possible for the same thing to happen to me?