Is it healthy to be vegetarian during pregnancy?

Yes. If you eat a proper diet of fruits, vegetables, grains, beans, nuts, and maybe also dairy, you are fine. You should be on prenatal vitamins anyway. As a case in point, the majority of indians are vegetarian, including during pregnancy. Apparently, it turned out fine since there's over 1 billion in india.