Are twins hereditary?

Jessica • Im 29 years old and this is baby number 3 for me! My daughter is 6 and my son is 4. Having a scheduled c section on December 28th unless he comes sooner!
My boyfriend's father is a twin and my aunt conceived triplets naturally.. I wasn't sure if twins were only hereditary on the mothers side if at all? My first Dr appt is in 2 weeks so I'll find out but was just curious :)