Being Healthy depends on the male to?

I know that I have to be healthy if I'm trying to coniceve but also doesn't the guy need to be healthy as well? Like not drink soda  and exercise  and eat healthy dose it really matter about the guy to? Or dose it just depend on the girl?