No, riboflavin (also known as Vitamin B2) and magnesium are two different substances. Riboflavin is a type of B vitamin that helps the body break down and use energy from food, while magnesium is a mineral that is important for many functions in the body, including muscle and nerve function, blood pressure regulation, and keeping bones strong.