Uti cause false negative

If you have a uti with blood in your urine, can it alter your pregnancy test? Like dilute it possibly?