lose weight-pregnant

anyone lose weight when theybfind out they are pregnant? been trying to lose 10lbs, is it ok and possible to do?