Technically it is not really not necessary to stop ligation reaction before transformation, provided that you are doing transformation instantly after ligation.
But if you want to store the ligation reaction for longer period, you can stop the ligation reaction by heat inactivating.