Can you make two spawn points?

Can you make two spawn points I am making a server and i need people to spawn in the lobby when they join but when they die during the game they spawn at this other place. Can you do that on Minecraft?

make 2 spawnpoints with what??? :neutral_face: