Is it okay to drink a glass of water that has sat out overnight at room temperature, approximately 72 degrees?

I have heard that bacteria thrive in water that is at room temperature, approximately 72 degrees. Is it okay to drink water that has sat out overnight in a glass at this room temperature?