If you have a hernia and just found out you ae pregnant will it affect the baby?

i am 12 weeks pregnant and just found out i have a hernia and the pain is getting worse will it effect the pregnancy i am 12 weeks pregnant and just found out i have a hernia and the pain is getting worse will it effect the pregnancy i am 12 weeks pregnant and just found out i have a hernia and the pain is getting worse will it effect the pregnancy