Nitrogen helps the leafy growth which is necessary to produce fruit. But yes, the phosphorus and calcium produce the fruit. People bury egg shells with the roots when they plant and they say that helps. My tomatoes are wayyyy overgrown and now they have so much little fruit I don’t dare trim...