Yes. I could go into detail on that, but I won't.
In any case, yes, typically, there is an energy requirement to convert nitrogen from the atmosphere to a usable form that plants can take up. Lower costs—gas costs or energy costs—are what influence the construction of fertilizer production around the world.