Can this happen

Can a UTI turn a pregnancy test positive?

So I’m here bored and started looking things up on pregnancy tests and i decided to look it up cause why not it’s 1 in the morning and can’t sleep I know some medications can create false positives along with other things but what about a uti or yeast infections