Can you really hear through a glass window by turning a cup upside down?

I’ve heard or read somewhere that if you take a glass/cup, like for drinking from, and put the open end up against a window or door and put your ear against the bottom of the cup, you can hear conversations really clearly that are taking place on the other side of the window.