Same connection string to connect to any node of a replica set

I understand.

Let’s see if you can clarify the last doubt I have, which I think I know the answer to, but just to make sure. If I have a replica set with 3 nodes (without referee), and one falls, how is automatically chosen which one is going to be the primary? Couldn’t there be a case of 1-1 tie in votes?

I have read this on stackexchange and this is how I think it works, is this correct?

“If you have 3 voting nodes in the replica set configuration and any single node is unavailable, the remaining 2 nodes still represent a strict majority of the replica set configuration (i.e. 2/3 nodes) and can elect a primary. The primary election requires a strict majority of voting nodes, so either 2 or 3 votes will elect a primary. With an even number of voting nodes (for example, 4) a strict majority will require n/2+1 votes (so 3 votes). With all members healthy, a 4 node replica set with an even number of votes could result in a 2/2 split and take longer to reach consensus.”

Thank you very much for the time you dedicate to clarify doubts and help. Thank you very much.