Yes.
If you do not do it, the command:
kubectl port-forward svc/<service> <client port>:22 -n <namespace>
will result in the error: «Service does not have a service port 22»:
You will also need to:
- open port 22 at the container's level
- install and configure an SSH server in the container.