Yes.
IVs affect how the stats of a pokemon are calculated, and in turn the pokemon's CP. Every pokemon has base stats for ATK, DEF, and STAM. Those base stats are then increased based on the corresponding IV values for ATK, DEF, and STAM/HP.
CP is calculated using the pokemon's base stats + the IV values for each stat. So, the short answer to your question is no.
Since ATK is weighted more heavily in the CP determination, a 0-15-15 IV Snorlax's damage output will be lower than a 15-15-0, and its maximum possible CP will also be lower, also meaning it will not receive as high a position in gyms.
Hope this helps.