Pregnancy test question?

I haven’t peed this morning yet but I had drank some stuff, could I still take a test or will it not h accurate since I drank something