Prevention of bitcoin sending code to an address of the wrong string btc / bch / bsv

Since they share several common addressing schemes, can I understand in the code how to send them to the correct channel?