how to 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

You may want to read NRF24 Problem - Networking, Protocols, and Devices - Arduino Forum

To control an on/off switch at 1km using 433 Mhz (or higher) radios generally requires direct, unobstructed line of sight between RX and TX.

With standard technology you will need high power modules and decent dipole antennas, or use LoRa modules at much lower power, with simple 1/4 wave (17 cm) wire antennas. Great info on the latter here: http://www.loratracker.uk/

Do not believe the seeedstudio ad hype, especially for modules with those utterly ridiculous pigtail wire antennas.