Diet while pregnant

Can i go on diet while pregnant so I don't get fat?