Is it safe to take anticoagulants in pregnancy?

Yes. Anticoagulants carry a risk of bleeding. Usually there is a very good reason for taking anticoagulants in pregnancy.
Some. Lovenox or Heparin are safe, Coumadin (warfarin) is not safe at all neither is aspirin.