If you have had Covid-19 and eventually recover from it, do you actually build an immunity to the virus or is that just a myth? ?

Only reason I am asking is because I got covid-19 a bunch of months ago and recovered. Is the true or a myth?
If you have had Covid-19 and eventually recover from it, do you actually build an immunity to the virus or is that just a myth? ?
Post Opinion