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

have you ever taken a course at MongoDB University? All courses are free and with proof of completion*.

I recommend you take M103 course.
M103: Basic Cluster Administration | MongoDB University

Edit: previously, I used “certificated” instead of “with proof of completion”. sorry for that.