the timing is right, but the reasoning is wrong.
the reason peoples leaves turn yellow in flower, almost always, is they didn't keep up with the veg nutes long enough when they flipped to flower.
the plant is cannibalizing its lower leaves to feed N to the new growth and buds it has to form during the stretch and flowering period.
the whole thing with cal-mag and cutting it off at the third week of flower is a coco thing, not applicable in soil. cheap coco doesn't come "charged"...the manufacturer of better brands will pre-soak it in cal-mag before you ever get it. if it hasn't been charged, it has a deficit, and you have to feed it extra to fill that deficit and still have any available for your plant. you've usually fed the coco enough by the second or third week of flower to fill the deficit, then you can cut way back because your medium isn't eating at least half of what you put in anymore.
calcium and magnesium are both important, and can cause problems if not available, but not the problems you're having