Phimosis can cause inflammation of both the penis and glans penis (balanoposthitis), which in turn can cause urinary tract infection.