Yes, and that's the idea: that both of them hold the rank of LCdr, but McCoy at |: is a Lower and Spock at || an Upper Lieutenant Commander.
If there are two different grades there would be two different titles. The grades being different enough to have separate insignia, but not different enough to have separate titles doesn't make sense.