Only if the two objects are moving with the same speed.
If you only know their masses but not their speeds, then you can't say
which one has greater kinetic energy. A running ant has greater
kinetic energy that a humongous rock that's just lying there.