Exercising during pregnancy

Al

I’m almost 18 weeks and my doctor just verify said exercise is still important like “go for a walk or swim”. I should’ve asked her there but can I run? Or bike ride? My husband wanted me to make sure before going on a bike ride