Does coffee go back if it's been out all day?

My bf bought me a small coffee around 3AM lol I forgot about it till right now but it's already 930PM. should I throw it away or can I drink it? i don't want to have a stomach ache after