Can a UTI cause your legs to ache?

Not likely. Now if you are dehydrated your legs may ache and the dehydration could precipitate a uti.