Getting exercise is important and recommended during pregnancy. Swimming, hiking, and riding a stationery bike are considered safe for pregnancy. You can do yoga while pregnant if you avoid certain poses like deep twists or inversions. Running is also safe as long as you pace yourself. Talk to your doctor or midwife for personalized advice on exercise during pregnancy.