Yes, insomnia can have a genetic component. Studies have shown that individuals with a family history of insomnia might have a higher likelihood of experiencing sleep disturbances themselves. However, genetics are just one piece of the puzzle; environmental factors and lifestyle choices also play significant roles in its development.