iOS doesn't install updates without you giving it permission. It pops up a dialog and lets you choose to install it now, overnight while plugged in, or to cancel, but it doesn't do it without your permission. macOS has an automatically install updates option which you can uncheck if you don't want them.