Yes and no. You probably still want to make sure your containers are patched and clean. If a container gets compromised, the data within could be accessed, and the files shared with it via a host-volume. It does provide a layer of protection against something running wild on the host, but you still be better off without running a compromised container in the first place.