You definitely develop immunity to viruses that sicken you. For the average person who is healthy.
If there is a second wave it will only be because of overly aggressive quarantining. This is why I said it won’t happen. For it to work, it would have to be air tight. All these young kids staying home are just saving fuel for a second wave. Old people ought to stay home and let younger people gain herd immunity as quickly as possible.