Answer:
No, it is no the same
Step-by-step explanation:
In the heat engine, the machine receives heat to produce work, where we desire that the work produced is 100% of the heat received and giving the following expression:

But in the heat pump, we receive work to produce heat and our desire is to convert all the work received into heat, which gives us the expression:

Therefore the expressions are different.