High risk pregnancy and pets

I turn 18 this month & I’ve been wanting a dog since last year. We are currently in a situation were money is tight but I have my saved up money to provide for the dog food, plates, bed (for my room), & etc. I already have it planned out. However, my mom is in high risk pregnancy so I want to know if having a pet will affect her pregnancy?