It is also important to try to prevent infections while pregnant. The best way to do this is to wash your hands often.