Diet during pregnancy

Is it okay to diet during pregnancy or workout?