Is it true that eating healthy you get pregnant?

I’m ttc since 16 months. I eat okay but I do take daily coffee with sugar and milk in it. I also eat junk sometime may be 2-3 times a week and Ice creams at times. However I also take dry fruits , fruits and pomegranate juice almost daily or 4-5 days a week for sure. I’m not all the time junk person but also not very healthy eater.

But now I’m on my medicated cycle and have been seeing RE since April. Point is I’m ready to try anything if it has worked for anyone.