In females, Bacterial vaginosis
and fungal infection
can cause soreness in the vagina and foul smelling discharge. Urinal tract infection both bacterial and fungal can cause foul smelling urine. In any case, the answer depends on whether there are any other associated symptoms.I recommend you to consult a GP and have the urine examination done or get a trial of antibiotics.