Can I prevent getting a hernia?

Can I prevent getting a hernia?