The model
NetworkPolicies are additive allow-lists. A pod with no policy selecting it is not isolated. Once any policy selects it for Ingress or Egress, traffic in that direction is allowed only if at least one rule in at least one of those policies matches. A connection needs both egress from the source and ingress to the destination.
Inside a peer, namespaceSelector and podSelector together mean both must match. Listed as separate peers, either one is enough. Named ports resolve against the destination pod’s container ports, so they are unresolved when you have not described those ports.
Questions
Will my cluster enforce this?
Only if your network plugin (CNI) implements NetworkPolicy. That cannot be known from manifests, so every result carries this caveat.
Why is DNS mentioned?
Egress isolation blocks DNS too. Most egress policies need a rule allowing UDP and TCP port 53 to the cluster DNS pods.