I am 20 weeks pregnant, and I was told to take blood thinners. Should I take them?

Can pregnant women take blood thinners?