Run while pregnant

Can i run while pregnant. I've read it can be bad for your knees. I forgot to ask my doctor too. So i wanted to know? Before pregnancy i was an active person i would run and exercise.