Of course we must have done something called pilgrimage. We either make a pilgrimage for our relatives or other family members or friends. The purpose of each pilgrimage is different, there are those who think of it as the last tribute and there is also the last meeting of the deceased and so forth.
Whatever the underlying reason for our pilgrimage is because of our good intentions towards the dead. But in this case we should not continue to commit various violations, which Allah has affirmed in the verse. Without realizing it, we often commit violations that are prohibited without our knowledge.