I know very little about plumbing but from what I have read, our second story shower has a drain trap and the pipe should always have water in it?

I ask this because when I take off the cover for the drain I see water in the pipe about 6 inches below the shower "floor". That is they way it's supposed to work? Water is always in that pipe? It never completely drains out?

Thanks!