18 Consequently, just as one trespass resulted in condemnation for all people, so also one righteous act resulted in justification and life for all people.

Read Romans 5:18 Using Other Translations

Therefore as by the offence of one judgment came upon all men to condemnation; even so by the righteousness of one the free gift came upon all men unto justification of life.
Therefore, as one trespass led to condemnation for all men, so one act of righteousness leads to justification and life for all men.
Yes, Adam’s one sin brings condemnation for everyone, but Christ’s one act of righteousness brings a right relationship with God and new life for everyone.