Yes it does. That is (partly) why those who love music often hate (too much) compression.
This is why the 'Happy' YouTube mix is less loud than the CD version linked to - the author asserts that the studio has done this because the incentive to apply dynamic compression on YT is now gone...