No. The fastboot package in Termux can parse commands but cannot send them over USB because Android lacks the necessary ioctl permissions.
The "Termux Link" method is a clever workaround for the PC-less enthusiast. With two Android phones, a USB cable, and the commands above, you can achieve full bootloader unlock without ever touching a laptop. unlock bootloader using termux link