Yeah, and there are several long used and relatively efficient ammonia generation methods for direct electrical conversion that uses nitrogen from the air and water with renewable electricity.
https://www.frontiersin.org/articles/10.3389/fenrg.2021.5808...