Investors & landlords

I don’t mind filing amended return.  Since I brought the rental in 2018, can I amend for the last 4 years now?  If I amend all prior years, will my cost basis be corrected for entering the sale of this rental I closing in Oct 2022?  Thanks