No, subs cannot pass through straits if their side doesn’t own it.
except:
Subs can always pass through Gibraltar
Allied ships can pass through Denmark, if permission granted by axis (which never happens)
Nothing goes through the Turkish straits if Turkey is neutral