No in 2017 and still no in 2023.
In 2023 with iPhone 15 pro, there are 4 models. Even in the US with no physical SIM, you can stil get carrier locked based on how you purchase the device. Many purchases are unlocked, especially non-subsidized purchases direct from Apple.
Use of an eSIM requires a carrier that supports eSIM and a wireless service plan (which may include restrictions on switching service providers and roaming, even after contract expiration). See your carrier for details. To learn more, visit https://apple.com/esim .
For detailed radio bands - consult the article 5G and LTE. Find the iPhone that’s right for your country or region.
In the US, CDMA models can work on GSM but the other way, not so much.
Worse, in the US, Sprint and Verizon are not willing to bring aboard a device from the other carrier despite CDMA and GSM potentially being technically compatible.
The GSM phones when unlocked work across pretty much any GSM carrier.
The CDMA phones when unlocked also work across pretty much any GSM carrier or the specific carrier that the device was assigned to initially. (So I would generally be able to bring a Verizon iPhone from another person to my Verizon account)