It is not a sin if one have taken care to go to Mass in order to worship God, thus fulfilling the Church's law. If shopping and such leads to missing Mass, there are sins involved. Missing mass without a serious reason is a serious sin.