You can wear spanx at 12 weeks pregnant, because spanx aren’t going to hurt you or the development of your baby.
That being said, later on in your pregnancy you’ll probably find that you don’t want to wear spanx. The further along you get, the more uncomfortable spanx will make you feel.