For as in Adam all die, so also in Christ shall all be made alive. 23 But each in his own order: Christ the firstfruits, then at his coming those who belong to Christ. 1 Corinthians 15:22-23 (ESV)
Yes, in Adam all humanity spiritually died, through the inheritance of sin from our forefather Adam. He was the representative of humanity in the Garden. The phrase “in Christ” is used in Rom 8:1 (c.f. Rom 6:11; 12:5; 16:7; 1 Cor 1:2), which states “There is therefore now no condemnation for those who are in Christ Jesus”, the believers are the ones who are not condemned (Jn 3:18) thus those who “in Christ shall all be made alive” are those who are “in Christ.”
In v. 23 we see who will be made alive and it is clear from 1 Cor 6:14 (And God raised the Lord and will also raise us up by his power, c.f. 15:52) that the believers are the ones whom God will raise up, not the reprobate.
The ESV Study Bible explains: [1]
1 Cor. 15:22 in Adam all die. See Rom. 5:12, 14–15, 17; Eph. 2:1, 5. in Christ shall all be made alive. See Rom. 5:17, 21; 6:4; Eph. 2:5–6. By divine appointment, Adam represented the whole human race that would follow him, and his sin therefore affected all human beings. Similarly, Christ represented all who would belong to him, and his obedience therefore affected all believers (see note on 1 Cor. 15:23).
1 Cor. 15:23 at his coming. When Christ returns, all his people from all time will receive resurrection bodies, never again subject to weakness,...