Need tech knowledge/assistance? - eviltoast

When you get a new iPhone, do your old WiFi networks/pws automatically update or do you have to log into each one again? Thanks in advance!