If I have had anorexia in the past can I still get pregnant?

POSSIBLY. Has a lot to do with body fat and hormones. So check with your physician and check your hormone levels.
Yes! Anorexia in the past is not a barrier to pregnancy. It does mean that you need to be careful about your eating habits during pregnancy since we will want you to gain 30-35 pounds during your pregnancy. You may want to see a nutritionist early on to agree on an eating plan that works for you.