Yes, but you’ll need to hold the details of how a password maps to a post.
So:
- store mappings somewhere, easiest as a hash/key-value pair (password->post_id)
- get password from field
- determine post_id, and construct the URL
- use wp_redirect() to redirect the user.