Short answer is no. Think of it this way, if it is that easy to trick the ECU, no one will make actual gear changes in order to change to different ratio. Also it just means that the ECU is very vulnerable or too hackable.
Also, even if that can be tricked, it will come with a price that you might need to pay later like abnormal wear and tear, but who knows.