control an on/off switch using a 433mhz transmitter/receiver link kit?

The first tutorial (in the 1st link below) describes how to transmit 433 mHz code to a 433 mHz device to control an on/off light switch in close proximity together between transmitter and receiver(about a few inches), and the other link (2nd one below) shows a 2KM Long Range RF link kit with an encoder and decoder. Hypothetically, could I rewrite or substitute the 1st sketch from the 1st link for the 2KM long Range RF kit? My objective is to control an on/off switch using a 433mhz transmitter/receiver link kit in open air from a distance of at least 1km. Can I do that here?

1.) 433 MHz RF module with Arduino Tutorial 3

2.) https://www.seeedstudio.com/2KM-Long-Range--RF-link-kits-with-encoder-and-decoder-p-321.html

Those modules might be good for 1km, but the antennas are poor, so it would rather depend on the exact circumstances of the 'open air'.

There are cheaper radio modules that would go maybe 50 or more times further.

I received a notification that I had been quoted in this thread, but there is not post to read.