Bladder infection

Is it bad to have a bladder infection while pregnant?