Foaming pee?

So I have heard that foaming fee indicates pregnancy but is that the only thing that would cause that? I just peed and it foamed a lot...what could this mean?Please dont judge me