Yes, I have found that painful hemorrhoids affect the ability to urinate.
I have suffered with hemorrhoids for about 25 years. I have tried many methods and most of them gave some relief. These include surgery, ointments, suppositories, pain killers etc.
Often a combination of approaches brought the greatest relief. Yet they kept coming back until I discovered that the key is in the diet.
For starters, I find a good combination of fluids and fiber worked best.
PS. Not too much fiber without fluids, as this can backfire and cause more damage. Not too much fluid as your bladder will fill very quickly.