Not if you define g as the real number before m/s^2, in the expression '10 m/s^2'.
In middle school physics lessons this makes teachers to hate you (it's their job to ensure that you do not do this), but after that, this has advantages time to time.
.. I remember hearing an anecdote that ancient Greeks did not know that numbers can be dimensionless, and when they tried to solve cubic equations, they always made sure that they add and substract cubic things. E.g. they didn't do x^3 - x, but only things like x^3 - 2*3*x. I don't think this is true (especially since terms can be padded with a bunch of 1s), but maybe it has some truth in it. It is plausible that they thought about numbers different ways than we do now, and they had different soft rules that what they can do with them.
In middle school physics lessons this makes teachers to hate you (it's their job to ensure that you do not do this), but after that, this has advantages time to time.
.. I remember hearing an anecdote that ancient Greeks did not know that numbers can be dimensionless, and when they tried to solve cubic equations, they always made sure that they add and substract cubic things. E.g. they didn't do x^3 - x, but only things like x^3 - 2*3*x. I don't think this is true (especially since terms can be padded with a bunch of 1s), but maybe it has some truth in it. It is plausible that they thought about numbers different ways than we do now, and they had different soft rules that what they can do with them.