Well, no the container won't terminate just because you are restarting a service. The Container is an instance of a machine. Consider this, you use a Linux-based system, does the system restart when you restart a service?
But it also depends on the container too, so I would say make a container and try it out once too.
Hope that helps!