Do I have to restart my server in order to apply updates?

Just as the title says, Im new to hosting my own server.

You’ll want to shut the server down, update it and then restart it.

How do I update it? Sorry I’m new to this