Do I need to Configure replica set from MongoDB shell after server restart?

A replica set needs 3 memebers to be viable.

if I only have 2 members … Primary and Secondary this will not work ?