Can I solder a plug to the end of my irrigation system power supply?
There would be no necessity to use a soldering-type barrel connector.
The screw-terminal-type barrel connector may be used, provided it is compatible with the barrel socket on the new sprinkler head.
You may ground the new sprinkler head, should it be all-metal and has a screw where you can connect the ground wire.