Can you make MG work? Yes. It has been done.
But given the option, go with something designed with cannabis in mind. I think Pure Blend Pro is a great choice for a new grower. It is high quality and relatively gentle compared to more 'chemmy' fertilizers.