Yes, you can leave the block heater plugged in while the engine is running. However, most experts agree that the maximum time for leaving the block heater on is around 4 hours, so try not to go over that limit. Other than that, it won't hurt if your tractor is running with the block heater on.