Answer :
No, this is not a violation of the Law of conservation because when Magnesium is burnt it reacts with oxygen to form magnesium oxide. This end product is going to weigh more than the solid magnesium due to the addition of oxygen.