Telnet remote access and checking the port open or not

Telnet is only used for remote accessing the devices or is it also used in whether to check port is open or not?

Telnet is primarily used for remote accessing devices, allowing users to establish a command-line interface session with a remote device over a network. However, it can also be used to check if a port is open or closed on a specific device. By attempting to connect to a specific port using Telnet, you can determine if the port is open and accessible or if it is closed and inaccessible.