Can I continue exercising while I'm pregnant?

I started running 5ks and weight lifting 6 months ago, and I just found out I'm 2 months pregnant. I'm thrilled and I want to make sure my baby is safe. Is it safe to continue running and lifting, or are there other ways I can stay active through my pregnancy?