Can they save a baby at 21 weeks?

Let’s say a woman gives birth at 21 weeks. Do doctors try to save baby to help him/her live or do they just wait until they past?