About Arduino Nano 33 BLE Sense

I want to use Arduino Nano33 BLE Sense board. I also have ethernet shield2 for connecting the board to internet.
If Ethernet shield2 couldn't be connected with my board then I can go for wifi shield ESP8266 if it work for me.
I found these examples for connecting the wifi shield with arduino board.

Please confirm if this will work in same way for arduino nano 33 ble sense board?.

Regards
Krishan Kumar