Can I connect one xbee(S6B) directly to my laptop with API mode

Can I connect one xbee(S6B) directly to my laptop with API mode?

Is this possible? How do i program on my laptop?

[Laptop]—wireless Wifi— [xbee(S6B, api-mode)–SPI—ARM cortex]

Or

[Laptop]—wireless Wifi–[WiFi_Router]—wireless Wifi— [zigbee(S6B, api-mode)–SPI—ARM cortex]

Plug your XBee into your XBee Explorer, and plug the Explorer into your computer
Open XCTU…
Hit Test/Query to make sure you can communicate with your XBee WiFi…
Click over to the “Modem Configuration” tab…
Select “Active Scan” near the top of the scrolling window.