It is possible
If the nerve
impingement from the herniated disc involves nerves that supply the urinary bladder
, then a patient may have incomplete bladder emptying which could increse the chances of developing a uti.
You should see your physician so that they can obtain a kidney and bladder ultrasound as well as refer you to a urologist for further evaluation.