Can someone clear this up?

If someone has a misscarge at 12 weeks can they find out the sex of the baby is that possible ?