You asked:

is 5 g greater than 43 mg

Yes. 5 grams is greater than 43 milligrams.