Starting a Diet

Ladies I have a huge question can you try to lose weight while pregnant? Obviously I'm going to clear it with doctor first but want some ideas... I'm only 5'2 and I weigh 230... I'm just having a lot of anxiety about my weight affecting my baby's and my health...