Are the “rules” for using compression the same for all types of music?
There is no one rule when it comes to mixing. Different mixers (the people who mix) have different opinions, different experiences, different styles and many more difference. But they all usually agree on one thing – producing good results.
When it comes to using compression, things get even more complicated because there are so many things you can do with it. In general, compression is a tool for making the volume level of something more even and consistent (check out out our posts Should You Use Compression In Audio Recording? and Improve Or Ruin Your Audio With an Effect Called Compression.
Compression can be a complex beast. And what works for one type of music may be totally inappropriate for other genres.
Read more about what to do with compression depending on the genre of music here: https://music.tutsplus.com/tutorials/how-to-use-compression-in-different-genres–cms-29270