Yes, this is OK. BTW heat is not generally thought of as being kinetic energy - at a microscale it is, but because the kinetic energy is randomly distributed is cannot be directly, usefully and 100% harnessed as kinetic energy. So the concept of "heat" is a useful way of making this distinction.
Remember always though that heat only flows from a hotter body to a colder body.
If you imagine the heat from my warm hands flowing into a hot cup of tea that I am holding, you realize that this is not what actually happens in real life. This example does not violate any laws about conservation of energy, but it does violate the Second Law of Thermodynamics, which is why it doesn't happen.
As @Janne808 said, extracting heat energy and turning it into work is done all the time (e.g. automobile engine, boiler and steam turbine, thermoelectric junction etc). Heat engines are governed not only by the conservation of energy, but also by Carnot's Law or the Second Law of Thermodynamics (which places a theoretical limit on the fraction of heat that can be converted into work; the rest must be rejected as waste heat to a lower temperature region)